P is for Practical | |
PerlMonks |
Re: Find out which subpattern matched in regexby space_monk (Chaplain) |
on Jun 14, 2013 at 12:26 UTC ( [id://1038955]=note: print w/replies, xml ) | Need Help?? |
You can use "given/when" constructs to match against a regex array from 5.10 on
If you spot any bugs in my solutions, it's because I've deliberately left them in as an exercise for the reader! :-)
In Section
Seekers of Perl Wisdom
|
|