Way to do RegEx substring replacements?

J. Landman Gay jacque at hyperactivesw.com
Sat Mar 4 21:50:11 EST 2006


Jim Witte wrote:
> Is there a way in Revolution (2.0.3) to do a RegEx find and replace  
> using one of the sub-expressions, like finding
> 
> (....) ([^x]*)x.*
> 
> and replacing by
> 
> \1\t\2
> 
> directly without having to use matchText to extract the  subexpressions 
> and then construct the line? (Yes, I know this should  be in Perl, 
> Python, or something else - that's next after the  prototype is done)

See if the "replaceText" function does what you want.

-- 
Jacqueline Landman Gay         |     jacque at hyperactivesw.com
HyperActive Software           |     http://www.hyperactivesw.com



More information about the use-livecode mailing list