Standard Library

Thierry Douez th.douez at gmail.com
Mon Aug 11 10:38:39 EDT 2014


2014-08-10 5:15 GMT+02:00
Kay C Lan <lan.kc.macmail at gmail.com>:

> It is easy, when copying regex off such sites listed above, or
> building your own, and you know you are only finding x number of data
> bites, to assume that that is how many capture variables you need, but
> if OR is used, then you can easily end up needing double or triple the
> number of variables.
>
> Rule of thumb, always count the number of capturing () in the regex
> and ensure you have the same number of allocated capturing variables.
>

As one engine contributor brings the PCRE library (regex) up
to date some time ago, it is easy to deal with this:

Check capture group naming and branch reset.

Both are helpful to avoid those kind of errors.

Thierry

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




More information about the use-livecode mailing list