SPUG: minimal unmatching regex

Damian Conway damian at conway.org
Wed Aug 19 00:51:36 PDT 2009

Ingy shot an eagle on the ninth:

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

I'm sure you *can* grok it. It's very straightforward: match (almost)
any single character, then be at the start of the string. A clear and
obvious paradox, and hence unmatchable.

> 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

"Oi! Who you calling Big Nose???"



More information about the spug-list mailing list