2014-08-10 5:15 GMT+02:00 Kay C Lan <lan.kc.macm...@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 _______________________________________________ use-livecode mailing list use-livecode@lists.runrev.com Please visit this url to subscribe, unsubscribe and manage your subscription preferences: http://lists.runrev.com/mailman/listinfo/use-livecode