Skip to content

Instantly share code, notes, and snippets.

@imduffy15
Created January 20, 2018 14:04
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 imduffy15/f2219d233fe9a4263476d69219f98d21 to your computer and use it in GitHub Desktop.
Save imduffy15/f2219d233fe9a4263476d69219f98d21 to your computer and use it in GitHub Desktop.
\{ # { character
(?: # non-capturing group
[^{}] # anything that is not a { or }
| # OR
(?R) # recurses the entire pattern
)* # previous group zero or more times
\} # } character
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment