Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change
 
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;


Comment on Re: help required for regexp
Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (3)
As of 2015-08-30 00:41 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The oldest computer book still on my shelves (or on my digital media) is ...













    Results (346 votes), past polls