Problems? Is your data what you think it is? | |
PerlMonks |
Re^4: how to search and replace the match with specific number of times in a stringby markkawika (Monk) |
on Jan 29, 2010 at 19:26 UTC ( [id://820388]=note: print w/replies, xml ) | Need Help?? |
That's one way, but I think a negative look-ahead would serve you better in this specific case:
Also, you don't need to escape the * in the replacement string.
In Section
Seekers of Perl Wisdom
|
|