Finding matched parentheses

Geoff Canyon gcanyon at gmail.com
Mon Jul 29 15:51:13 EDT 2013


On Mon, Jul 29, 2013 at 12:14 PM, Peter Haworth <pete at lcsql.com> wrote:

> Personally, I'd use the regex that Thierry posted a couple of days back.
>  No recursion involved and one line of code does the job.
>


If you're talking about:

matchChunk(mystring,"(\([^)]*\)).*",tstart,tEnd)

That will return 1,4 for the string "((()))"

gc



More information about the use-livecode mailing list