|
|
| Don't ask to ask, just ask | |
| PerlMonks |
Re: Search a match to a regex from the END of a stringby Athanasius (Vicar) |
| on Mar 15, 2013 at 12:13 UTC ( #1023677=note: print w/ replies, xml ) | Need Help?? |
|
Like this?
The greedy quantifier in the regex term .* eats up as much of the search string as possible, thereby ensuring that the last match is found. Hope that helps,
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||