News for hackers. Stuff that matters.
Re:Regex Golf by josephlord on Friday December 20, 2013 @11:49AM (#6942316)

  ^(?!.*(.)(.)\2\1)
You may also need to fill in the places where it could be anything. The above worked on abba for me.

BTW a double space indent then formats as code on HN I think.

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.