Beefy Boxes and Bandwidth Generously Provided by pair Networks
Perl: the Markov chain saw
 
PerlMonks  

Re^3: extract line

by kcott (Chancellor)
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

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://1045616]
help
Chatterbox?
[Discipulus]: stonecolddevin which style of kung-fu do you practice?
[stonecolddevin]: Discipulus i don't practice anymore but i studied Pai Lum, it was a mish mash of northern and southern. lots of emphasis on the 5 animals

How do I use this? | Other CB clients
Other Users?
Others pondering the Monastery: (12)
As of 2017-11-22 19:06 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?
    In order to be able to say "I know Perl", you must have:













    Results (327 votes). Check out past polls.

    Notices?