Search / replace

Igor de Oliveira Couto igor at pixelmedia.com.au
Sat Feb 20 16:31:50 EST 2010


Mike, thank you very much for this pointer:

On 21/02/2010, at 5:28 AM, Mike Bonner wrote:

> If you want do the search/replace with regex, you can do similar to this..
> 
>   put replaceText(field "Field","(?<=\d)\[","-") into tTmp
>   put replaceText(tTmp,"(?<!\d)\[",empty) into tComplete
> 
> This does a look behind.

[...]

Someone should definitely add this to the User Guide - or at the very least one of us should make an entry about this in the Dictionary, under 'replaceText'. Pleeeeeease!

Many thanks, once again,


--
Igor de Oliveira Couto
Sydney, Australia







More information about the use-livecode mailing list