... the order of the alternatives separated by | likely doesn't matter.
Further to Laurent_R's ++post: The ordered alternation "first match wins" behavior of Perl 5 can be seen here:
c:\@Work\Perl\monks>perl -wMstrict -le "my $s = 'xxxABCDEyyy'; ;; print qq{captured '$1'} if $s =~ m{ (ABC|ABCD|ABCDE) }xms; " captured 'ABC'
Give a man a fish: <%-{-{-{-<
In reply to Re^2: Is RegEx in Perl not NFA anymore?
by AnomalousMonk
in thread Is RegEx in Perl not NFA anymore?
by redbull2012
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |