in reply to regex question
If you want to match only the exact words, not longer strings containing them use
$_ =~ /^$words$/
The ^ states that the word must be found at the very beginning of the line, $ means the very end.
Jenda
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Re: regex question
by zigdon (Deacon) on Sep 24, 2002 at 17:34 UTC | |
by gnu@perl (Pilgrim) on Sep 24, 2002 at 17:57 UTC | |
by zigdon (Deacon) on Sep 24, 2002 at 18:14 UTC | |
|
Re: Re: regex question
by gnu@perl (Pilgrim) on Sep 24, 2002 at 17:37 UTC |