more useful options | |
PerlMonks |
Re: match functionby AnomalousMonk (Archbishop) |
on Jun 09, 2020 at 21:57 UTC ( [id://11117885]=note: print w/replies, xml ) | Need Help?? |
Just for the sake of completeness... I think Corion has already alluded to this, but the [a|A] character class consists in the '|' (pipe) and 'a' and 'A' characters. The | regex alternation metacharacter is not meta inside a character class. See Bracketed Character Classes in perlrecharclass. Give a man a fish: <%-{-{-{-<
In Section
Seekers of Perl Wisdom
|
|