How could a user specify a regexp meaning, "Any string that does not have the phrase 'foo' in it?"Abigail gave an elegant one. I would expect this variation to be a little more efficient by virtue of only engaging lookahead upon encountering an f: /^(?:[^f]*f(?!oo))*[^f]*$/s;
In reply to Re: User regexps
by Roy Johnson
in thread User regexps
by rkg
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |