in reply to prohibiting certain strings
As there is often more than one way to do it, here is what I mentioned in the CB (for your reference):
12/28 at 18:19:49 <atcroft> keiusui: exit if ($input =~ m/b\W*a\W*d\W* +w\W*o\W*r\W*d/i);, maybe? (note: untested)
You may also want to look at Regex::Common::profanity as another possibility.
HTH.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: prohibiting certain strings
by keiusui (Monk) on Dec 29, 2005 at 04:15 UTC |