Beefy Boxes and Bandwidth Generously Provided by pair Networks
good chemistry is complicated,
and a little bit messy -LW
 
PerlMonks  

Re: help required for regexp

by si_lence (Deacon)
on Dec 07, 2011 at 09:25 UTC ( [id://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
Domain Nodelet?
Node Status?
node history
Node Type: note [id://942189]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others lurking in the Monastery: (4)
As of 2024-03-29 00:35 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found