|
|
| Keep It Simple, Stupid | |
| PerlMonks |
Re: Regex: Matching last of repeated character to end of stringby radiantmatrix (Parson) |
| on Nov 04, 2005 at 09:57 UTC ( [id://505722]=note: print w/replies, xml ) | Need Help?? |
This is an archived low-energy page for bots and other anonmyous visitors. Please sign up if you are a human and want to interact.
There are three approaches I can think of that would solve your issue, and only one is a regex.
The last one (rindex) strikes me as the most efficent way to go, but I haven't Benchmarked it.
<-radiant.matrix->
A collection of thoughts and links from the minds of geeks The Code that can be seen is not the true Code "In any sufficiently large group of people, most are idiots" - Kaa's Law
In Section
Seekers of Perl Wisdom
|
|
||||||||||||||||||||||||||||