Think about Loose Coupling | |
PerlMonks |
Re^2: match longest sequence in an "or" REby Corion (Patriarch) |
on Sep 24, 2011 at 19:41 UTC ( [id://927676]=note: print w/replies, xml ) | Need Help?? |
I think one of the problems is the greedy .+ at the start of the regex. It would be better to leave it off or make it nongreedy. Then, just sorting by length decreasing makes the thing work again:
In Section
Seekers of Perl Wisdom
|
|