The problem
<sniperd> looking to write a regex that strips out all periods, except for the last one. ie, i have a string named perl.is.the.best.txt and I just want perlisthebest.txt
- Freenode's #perl.
- s/regex/function/
TATMWTDI | There are too many ways to do it | #2 |
<sniperd> looking to write a regex that strips out all periods, except for the last one. ie, i have a string named perl.is.the.best.txt and I just want perlisthebest.txt
- Freenode's #perl.
Copyright © 2005 Shlomi Fish |