Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl-Sensitive Sunglasses
 
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.

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://455004]
help
Chatterbox?
[Lotus1]: damn, I just opened the attacment on a phishing simulation email in the $work email
[Lotus1]: now I'll be sent to re-education camp or something
[stevieb]: relocate Lotus1 to the brig, straight away!

How do I use this? | Other CB clients
Other Users?
Others contemplating the Monastery: (13)
As of 2017-05-24 13:38 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?