Re:Regex Golf
by Procrastes on Friday December 20, 2013 @02:36PM
(#6943463)
Your approach scores higher, but it only matches the (imaginary) space before the "good" words.
I went with:
^(?!.(.)(.)\2\1).$
with the thought that if I really wanted those matches I would want the whole strings.
Fun game!
Re:Regex Golf
by Procrastes on Friday December 20, 2013 @05:58PM
(#6944686)
oops,
^(?!.*(.)(.)\2\1).*$
With proper formatting hopefully.
BTW a double space indent then formats as code on HN I think.