Hacker News new | past | comments | ask | show | jobs | submit login

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!




oops,

  ^(?!.*(.)(.)\2\1).*$
With proper formatting hopefully.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: