Your skill will accomplish what the force of many cannot |
|
PerlMonks |
Re: Determing what part of a regex matched.by Abigail-II (Bishop) |
on Mar 06, 2003 at 01:03 UTC ( [id://240766]=note: print w/replies, xml ) | Need Help?? |
I'd use separate regexes. But if you insist on using a single
regex, (?{ }) is the way to go. I don't understand
this "I want to do X. I know it can be done using Y or Z, but I
don't want to either Y or Z. How do I do X?". What if, like in
this case, both Y and Z are good ways to do X?
Abigail
In Section
Seekers of Perl Wisdom
|
|