SPUG: minimal unmatching regex

Damian Conway damian at conway.org
Tue Aug 18 22:37:53 PDT 2009


> What's the smallest (comprehensible) regex that's guaranteed to fail against
> all input?

/(?!)/

"Look ahead and *don't* find...nothing".
Oops! Too late. You already found nothing. ;-)

Damian


More information about the spug-list mailing list