Finding matched parentheses
Thierry Douez
th.douez at gmail.com
Fri Jul 26 03:10:04 EDT 2013
2013/7/26 Mark Wieder <mwieder at ahsoftware.net>
> get matchChunk(pString,"(\(.*\)).*",tstart,tEnd)
>
> but even that will fail when you have multiple parentheses in strings
> like this:
>
> "hello (bucko) this (is) a test"
>
But this one will work and match the first occurence:
if matchChunk(mystring,"(\([^)]*\)).*",tstart,tEnd)
Regards,
Thierry
------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage
More information about the use-livecode
mailing list