How to find the nth occurence of a string

Aldric_Lhernault-R45176 Aldric.L'Hernault at freescale.com
Fri Oct 13 16:00:36 CEST 2006


Eric Bouyoux wrote:
> Hi,
>
> Has anybody already written a macro that help to find the nth occurence
> ofa string ?
>   
Hi,

My guess: use twice one the "search" or "search_string" functions
(depending you're working on a nedit window or a string variable),
and use $search_end as start-index for second call.

Hope this helps,

 Aldric


More information about the Discuss mailing list