Skip to content

Instantly share code, notes, and snippets.

@mrgnw
Last active October 25, 2018 17:09
Show Gist options
  • Save mrgnw/503bc422fc8f07ed9b7a58ca2a56e559 to your computer and use it in GitHub Desktop.
Save mrgnw/503bc422fc8f07ed9b7a58ca2a56e559 to your computer and use it in GitHub Desktop.
regex #snippets

Extract between quotes

"(.*?)"

… even if there are quotes within quotes

(["'])(?:(?=(\\?))\2.)*?\1
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment