I can't resist the urge to out golf the Damian.<br><br>I can't find any input that matches:<br><br> /.^/<br><br>Then again maybe my smaller submission fails to be comprehensible. I can't seem to grok it myself, but I'm sure Damian can. :)<br>
<br>Ingy<br><br>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<br><br><div class="gmail_quote">
On Tue, Aug 18, 2009 at 10:37 PM, Damian Conway <span dir="ltr"><<a href="mailto:damian@conway.org">damian@conway.org</a>></span> wrote:<br><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div class="im">> What's the smallest (comprehensible) regex that's guaranteed to fail against<br>
> all input?<br>
<br>
</div>/(?!)/<br>
<br>
"Look ahead and *don't* find...nothing".<br>
Oops! Too late. You already found nothing. ;-)<br>
<font color="#888888"><br>
Damian<br>
</font><div><div></div><div class="h5">_____________________________________________________________<br>
Seattle Perl Users Group Mailing List<br>
POST TO: <a href="mailto:spug-list@pm.org">spug-list@pm.org</a><br>
SUBSCRIPTION: <a href="http://mail.pm.org/mailman/listinfo/spug-list" target="_blank">http://mail.pm.org/mailman/listinfo/spug-list</a><br>
MEETINGS: 3rd Tuesdays<br>
WEB PAGE: <a href="http://seattleperl.org/" target="_blank">http://seattleperl.org/</a><br>
</div></div></blockquote></div><br>