go ahead... be a heretic | |
PerlMonks |
Re(Amel): GREP/Regex - Locating Words in Sentencesby dsb (Chaplain) |
on May 02, 2002 at 16:54 UTC ( [id://163595]=note: print w/replies, xml ) | Need Help?? |
You could extend this as necessary to accomodate a longer list of words to be tested.
Note that grep also makes use of regular expressions(in this case anyway). So realize that it may not have been your regular expressions that weren't working but rather the logic of your code. Hope this helps ;0)
Amel
In Section
Seekers of Perl Wisdom
|
|