paullos has asked for the wisdom of the Perl Monks concerning the following question:
$1 will give the string that matched "phone" but what will give (if anything) the expression that was matched "..one" ??$str = "phone"; $str =~ /(..one|[gn]one)/; print "string match = $1\n "; print "expression match = ????\n ";
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Can you get the
by Flexx (Pilgrim) on Sep 06, 2002 at 10:12 UTC |