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

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

by kcott (Abbot)
on Aug 03, 2013 at 10:30 UTC ( #1047691=note: print w/ replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    #!/usr/bin/env perl -T
    
    ...
    say '[1]', $1, '[1]';
    say '[2]', $2, '[2]';
    say '[', $_ + 3, ']', $captures[$_], '[', $_ + 3, ']' for 0 .. $#captu
    +res;
    
  2. or download this
    $ pm_1047667_regex.pl
    [1]3[1]
    ...
    [4]
    [5]ccccc
    [5]
    
  3. or download this
    $ pm_1047667_regex.pl
    [1]2[1]
    ...
    [3]
    [4]bbbb
    [4]
    
  4. or download this
    $ pm_1047667_regex.pl
    [1]4[1]
    ...
    [5]ccccc
    [5]
    [6]ddddd[6]
    

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others chanting in the Monastery: (5)
As of 2014-07-10 11:07 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    When choosing user names for websites, I prefer to use:








    Results (207 votes), past polls