in reply to Re: Finding out which of a list of patterns matched
in thread Finding out which of a list of patterns matched
which suggests to me that the match earliest in the text will be found. If that isn't the case it's going to make my life a whole lot more difficult...:P"'Sam I am,' said Samwise" =~ /(Samwise|Sam)/; # $1 eq "Sam"
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Finding out which of a list of patterns matched
by duff (Parson) on Jan 23, 2006 at 15:29 UTC |