Finding matched parentheses

Mark Wieder mwieder at ahsoftware.net
Thu Jul 25 22:38:20 EDT 2013


Pete-

Thursday, July 25, 2013, 6:52:15 PM, you wrote:

> This appears to work:

> get matchChunk(<string>,".*\(.*(\)).*",tstart,tEnd)

I think this is closer to what you're looking for

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"

-- 
-Mark Wieder
 mwieder at ahsoftware.net





More information about the use-livecode mailing list