![]() |
|
Problems? Is your data what you think it is? | |
PerlMonks |
Re: Regex: Matching last of repeated character to end of stringby radiantmatrix (Parson) |
on Nov 04, 2005 at 14:57 UTC ( [id://505722]=note: print w/replies, xml ) | Need Help?? |
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
|
|