Skip to content

Instantly share code, notes, and snippets.

@speedcell4
Last active August 29, 2015 14:22
Show Gist options
  • Save speedcell4/46085ede88367af98f10 to your computer and use it in GitHub Desktop.
Save speedcell4/46085ede88367af98f10 to your computer and use it in GitHub Desktop.
solution to Regex Golf

solutions to Regex Golf

Play

  1. Warmup: foo
  2. Anchors: ick$
  3. Ranges: ^[a-f]+$
  4. Backrefs: (...).*\1
  5. Four: (.)(.\1){3}

Bonus levels

  1. Subtraction: ^(x+)(x+) - \1 = \2$
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment