A formal regular expression can only match an arbitrarily nested structure. Thus if we wanted to match to depth of say 6 we could do it, but if we want to match to any depth a formal regex wont work. And as I said above perls regexes arent formal regexes. They are decidedly irregular as they have support for backrefs.
Yves / DeMerphq
--
When to use Prototypes?
In reply to (Clarification of) How to Extract Nested IF/THEN elements
by demerphq
in thread How to Extract Nested IF/THEN elements
by Al Shiferaw
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |