SPUG: minimal unmatching regex

Ingy dot Net ingy at ingy.net
Wed Aug 19 00:34:59 PDT 2009

I can't resist the urge to out golf the Damian.

I can't find any input that matches:


Then again maybe my smaller submission fails to be comprehensible. I can't
seem to grok it myself, but I'm sure Damian can. :)


PS If you look at   /.^/   at the proper angle, in the proper light, under
the influence of the proper drugs, it kinda looks like an emoticon of a
certain Aussie I know... :P

On Tue, Aug 18, 2009 at 10:37 PM, Damian Conway <damian at conway.org> wrote:

> > 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
> _____________________________________________________________
> Seattle Perl Users Group Mailing List
>     POST TO: spug-list at pm.org
> SUBSCRIPTION: http://mail.pm.org/mailman/listinfo/spug-list
>    MEETINGS: 3rd Tuesdays
>    WEB PAGE: http://seattleperl.org/
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.pm.org/pipermail/spug-list/attachments/20090819/8c1aeae6/attachment.html>

More information about the spug-list mailing list