Skip to content

Instantly share code, notes, and snippets.

@ademilsonfp
Last active December 15, 2015 01:59
Show Gist options
  • Select an option

  • Save ademilsonfp/5184095 to your computer and use it in GitHub Desktop.

Select an option

Save ademilsonfp/5184095 to your computer and use it in GitHub Desktop.
Regex for string extraction.
var apostrophed = /'(|([^'\\]+|\\[^']|\\')*)'/
var quoted = /"(|([^"\\]+|\\[^"]|\\")*)"/
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment