Anonymous Monk has asked for the wisdom of the Perl Monks concerning the following question:
So if I have an array of my words that are accepted: my @good_words = qq(red blue green brown); how would I get a s/// regex on $input to remove anything but the words found in @good_words?
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re: Simple regex to remove all but a list of words
by moritz (Cardinal) on Jun 04, 2008 at 21:39 UTC | |
by FunkyMonk (Bishop) on Jun 04, 2008 at 21:53 UTC | |
by moritz (Cardinal) on Jun 04, 2008 at 22:16 UTC | |
|
Re: Simple regex to remove all but a list of words
by FunkyMonk (Bishop) on Jun 04, 2008 at 21:46 UTC | |
|
Re: Simple regex to remove all but a list of words
by ikegami (Patriarch) on Jun 04, 2008 at 21:41 UTC |