in reply to Re: Determing what part of a regex matched.
in thread Determing what part of a regex matched.
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.
|
|---|