Furthermore I realized that I don't understand the ?:, ?=
Perl for Dummies's book said
if for some odd reason you want to suppress $1 or $2 to prevent them from getting assigned, add ?: after the left paranthesis.
example
$test = 'NESTING'; $test =~ /(?:N.)S(.I)/; print "$1 \n";
when you run this program, Perl displays "TI"
zak
In reply to Re: regexp: extracting info
by doctor_moron
in thread regexp: extracting info
by jeanluca
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |