Beefy Boxes and Bandwidth Generously Provided by pair Networks
Pathologically Eclectic Rubbish Lister
 
PerlMonks  

Re: Regular expressions: interpolate the variable in the value of the number of repetitions for the group

by rjt (Deacon)
on Aug 03, 2013 at 01:40 UTC ( #1047671=note: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    s/(\d)//;
    say for (split /\n/)[0..$1-1];
    

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1047671]
help
Chatterbox?
and all is quiet...

How do I use this? | Other CB clients
Other Users?
Others imbibing at the Monastery: (5)
As of 2017-03-27 03:01 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    Should Pluto Get Its Planethood Back?



    Results (315 votes). Check out past polls.