Finding matched parentheses

Thierry Douez th.douez at gmail.com
Fri Jul 26 13:10:25 EDT 2013


2013/7/26 Peter Haworth <pete at lcsql.com>

> On Fri, Jul 26, 2013 at 12:10 AM, Thierry Douez <th.douez at gmail.com>
> wrote:
>
> > But this one will work and match the first occurence:
> >
> >   if matchChunk(mystring,"(\([^)]*\)).*",tstart,tEnd)
> >
> > Regards,
> >
> > Thierry
> >
>
> Nice Thierry!  Doesn't handle nested parens though, but once again, that
> may not be a possibility in the OP's scenario.
>


Yes, that was my understanding..

There are solutions for recursive pattern matching with PCRE, but
never being able to make them work within LC.

Regards,

Thierry
​


>
> Pete
> lcSQL Software <http://www.lcsql.com>
>


------------------------------------------------
Thierry Douez - http://sunny-tdz.com
Maker of sunnYperl - sunnYmidi - sunnYmage



More information about the use-livecode mailing list