Skip to content

Instantly share code, notes, and snippets.

@sirlancelot
Created December 20, 2013 19:46
Show Gist options
  • Select an option

  • Save sirlancelot/8060281 to your computer and use it in GitHub Desktop.

Select an option

Save sirlancelot/8060281 to your computer and use it in GitHub Desktop.
The best answers to: http://regex.alf.nu/
foo
k$
[a-f]{4}
(...).*\1
^(?!.*(.)(.)\2\1)
^(.)(.).*\2\1$
^(?!(xx+)\1+$)
(.)(.\1){3}
^.{5}[^e]?$
^(([147]4|40|3[269]|9[05]|[378]1).+|0[369]*|[81][257])*$
(rr|ll|[lbr]o|en|ta|y|cr|eat|up).*\1
^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
^(x|(xx){1,9}|x{32}|(x{64})+)$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment