Skip to content

Instantly share code, notes, and snippets.

@zjhiphop
Last active January 1, 2016 00:39
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save zjhiphop/8068146 to your computer and use it in GitHub Desktop.
Save zjhiphop/8068146 to your computer and use it in GitHub Desktop.
  1. Plain Strings (207): foo
  2. Anchors (208): k$
  3. Ranges (202): ^[a-f]4$
  4. Backrefs (201): (...).*\1
  5. Abba (193): ^(?!.*(.)(.)\2\1)
  6. A man, a plan (177): ^(.)[^p].*\1$
  7. Prime (286): ^(?!(..+)\1+$)
  8. Four (199): (.)(.\1){3}
  9. Order (199): ^[^o]?.{5}$
  10. Triples (588): (00[039]|12|015|50)$|1..?4|4.2|1.7|6.0|006
  11. Glob (382): ^(\*(er|[fiptv])|[blpw]|[crdm][^ab]\w)
  12. Balance (286): ^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
  13. Powers (93): ^(?!(x(xx)+)\1*$)

Total Score: 3221

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment