in reply to Re: Blacklisting with a Regular Expression
in thread Blacklisting with a Regular Expression
Bingo. This is the correct solution./^(?!.*(?:evil|bad|wrong))/
...but it never occurred to me to put the .* INSIDE the negative lookahead./^.*(?!evil|bad|wrong)/
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^3: Blacklisting with a Regular Expression
by hv (Prior) on Aug 19, 2005 at 01:29 UTC |