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?
In reply to Simple regex to remove all but a list of words by Anonymous Monk
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |