Beefy Boxes and Bandwidth Generously Provided by pair Networks
Problems? Is your data what you think it is?
 
PerlMonks  

Re: help required for regexp

by si_lence (Deacon)
on Dec 07, 2011 at 09:25 UTC ( #942189=note: print w/replies, xml ) Need Help??


in reply to help required for regexp

If your example is not a simplified case to illustrate your problem you could also use
$str =~ s/(\d)\d+/$1/g;

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://942189]
help
Chatterbox?
and dust plays in a shaft of sunlight...

How do I use this? | Other CB clients
Other Users?
Others surveying the Monastery: (5)
As of 2017-01-23 23:48 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Do you watch meteor showers?




    Results (199 votes). Check out past polls.