Yes you're right. Shame on me for write a quick example without running it first.
An interesting thought. Wouldn't it be kind of brittle if the regex introduced another () all of the numbers would have to be shifted? My regexs are more complex then these and occasionally have a few parens in them.
In reply to Re: Re: Determing what part of a regex matched.
by Anonymous Monk
in thread Determing what part of a regex matched.
by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |