Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
PerlMonks  

Re^3: extract line

by kcott (Abbot)
on Jul 22, 2013 at 09:09 UTC ( #1045616=note: print w/ replies, xml ) Need Help??


in reply to Re^2: extract line
in thread extract line

$1, $2 (and $3, ..., etc.) hold the data that has been captured by a regular expression. This is fairly basic stuff, so perhaps a read of the perlretut - Perl regular expressions tutorial would be useful; it's section "Extracting matches" has a better, and more detailed, description than my one sentence.

-- Ken


Comment on Re^3: extract line
Select or Download Code

Log In?
Username:
Password:

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

How do I use this? | Other CB clients
Other Users?
Others rifling through the Monastery: (8)
As of 2015-07-31 03:43 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    The top three priorities of my open tasks are (in descending order of likelihood to be worked on) ...









    Results (274 votes), past polls