good chemistry is complicated, and a little bit messy -LW |
|
PerlMonks |
Re^4: Non-greedy regex behaves greedilyby ysth (Canon) |
on Jul 28, 2008 at 10:03 UTC ( [id://700491]=note: print w/replies, xml ) | Need Help?? |
You can force the regex engine to start looking for </a> at the end of the string and work forwards
by consuming all the string to start with and backtracking character by character:
but there's usually a better way to get what you want done.
In Section
Seekers of Perl Wisdom
|
|