Beefy Boxes and Bandwidth Generously Provided by pair Networks
go ahead... be a heretic
 
PerlMonks  

Re: Removing dots

by Dietz (Curate)
on May 08, 2005 at 14:11 UTC ( #455004=note: print w/ replies, xml ) Need Help??


in reply to Removing dots

This would remove all dots except the rightmost one:
s/\.(?=.*\.)//g;

A single dot occuring only once in the string will not be removed.


Comment on Re: Removing dots
Download Code

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://455004]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others wandering the Monastery: (3)
As of 2015-07-28 03:33 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (252 votes), past polls