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

Explain a regexp matched group result

by jdd (Acolyte)
on Oct 28, 2013 at 18:10 UTC ( [id://1060027]=perlquestion: print w/replies, xml ) Need Help??

Help for this page

Select Code to Download


  1. or download this
    use strict;
    use warnings FATAL => 'all';
    ...
        printf "Group %d: <%s>\n", $_, substr($string, $-[$_], $+[$_] - $-
    +[$_]);
      }
    }
    
  2. or download this
    Group 0: <aacbbbcac>
    Group 1: <ac>
    Group 2: <a>
    Group 3: <bbb>
    Group 4: <c>
    

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://1060027]
Approved by Laurent_R
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others pondering the Monastery: (2)
As of 2024-04-24 15:10 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found