SPUG: minimal unmatching regex
Aaron West
tallpeak at hotmail.com
Wed Aug 19 01:08:58 PDT 2009
I was starting to think of something like this, but assumed (wrongly) that ^
would only mean start of string, at start of regex. Oops...
-----Original Message-----
..
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.
More information about the spug-list
mailing list