Or perhaps you are using the number 2 as a delimiter? If so, convert the "2" to a system delimiter, then you should be able to use the locate command. That, however, is not a "one step" method. And the more I think about it, you may even have to loop through the array to find the last one.
Charlie Rubeor Unix/Database Administrator Wiremold/Legrand 60 Woodlawn Street West Hartford, CT 06110 Tel: 860.233.6251 x3498 Fax: 860.523.3690 Email: [EMAIL PROTECTED] Internet: www.wiremold.com [EMAIL PROTECTED] wrote on 09/28/2005 11:35:28 AM: > Hi > > Is there any direct one step method to locate the position of last > occurrence of a Sub-string in an existing string. > For ex:- to locate the last occurrence of "AC" in the string > X="AC2BC2CD2AC2AC2BC2SS" for this case the position should be returned > 5. > Your valuable inputs will be appreciated > > Thanks, > Hari Varma > > > > **************** CAUTION - Disclaimer ***************** > This e-mail contains PRIVILEGED AND CONFIDENTIAL INFORMATION intended solely > for the use of the addressee(s). If you are not the intended recipient, please > notify the sender by e-mail and delete the original message. Further, you are > not to copy, disclose, or distribute this e-mail or its contents to any other > person and any such actions are unlawful. This e-mail may contain viruses. > Infosys has taken every reasonable precaution to minimize this risk, but is > not liable for any damage you may sustain as a result of any virus in this > e-mail. You should carry out your own virus checks before opening the e-mail > or attachment. Infosys reserves the right to monitor and review the content of > all messages sent to or from this e-mail address. Messages sent to or from > this e-mail address may be stored on the Infosys e-mail system. > ***INFOSYS******** End of Disclaimer ********INFOSYS*** > ------- > u2-users mailing list > [email protected] > To unsubscribe please visit http://listserver.u2ug.org/ [demime 1.01d removed an attachment of type image/jpeg] ------- u2-users mailing list [email protected] To unsubscribe please visit http://listserver.u2ug.org/
