Skip to content

Instantly share code, notes, and snippets.

@czjxy881
Forked from jpsim/answers.md
Last active January 1, 2016 00:49
Show Gist options
  • Save czjxy881/8069047 to your computer and use it in GitHub Desktop.
Save czjxy881/8069047 to your computer and use it in GitHub Desktop.
  1. Plain Strings (207): foo
  2. Anchors (208): k$
  3. Ranges (202): ^[a-f]+$
  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): 1..?4|1.7|4.2|6.0|(00[039]|12|015|50)$|006
  11. Glob (385): ^(p|w|l|c[^a]|b|do|mi|\*[fiptv])|rr
  12. Balance (286): ^(<(<(<(<(<(<<>>)*>)*>)*>)*>)*>)*$
  13. Powers (77): ^(x?x|x{4}|(x{8}){1,4}|(x{64})*)$

Total Score: 3208

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