SPUG: minimal unmatching regex
Ken Clarke
k_clarke at perlprogrammer.net
Sun Aug 23 12:13:47 PDT 2009
Late to the party but I love regexes.
Patrick's /[^\w\W]/ made me think of /[\d\D]/ or /[\s\S]/ or any character
class containing complementary subsets
My own invention is /^^/ or /$$/ or any match which can only occur once
occuring twice
Still, my vote goes to Ingy's /.^/ because not only does it use the least
characters (at least I havn't seen any single character candidate), but it
also uses the least ink :)
>> Ken
More information about the spug-list
mailing list