use strict; use warnings; while(<DATA>) { print unless /(evil|bad|wrong)/i; } __DATA__ This string contains no blacklisted tokens. This string is evil and wrong.
Updated: added i switch.
In reply to Re: Blacklisting with a Regular Expression
by AReed
in thread Blacklisting with a Regular Expression
by BenjiSmith
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |