in reply to
Re: extract line
in thread extract line
what should $2 refer to?
$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.
Use two parentheses: (Like this: :) )
Use one parenthesis: (Like this: :)
Reverse direction of the smiley: (Like this: (: )
Use angle/square brackets instead of parentheses
Use C-style commenting to set the smiley off from the closing parenthesis
Make the smiley a dunce: (:>
I disapprove of emoticons
Results (630 votes),