Skip to content

Instantly share code, notes, and snippets.

@warpling
Created December 14, 2019 14:06
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 warpling/e3614bf8fbec1dd3f1d56a468fde2572 to your computer and use it in GitHub Desktop.
Save warpling/e3614bf8fbec1dd3f1d56a468fde2572 to your computer and use it in GitHub Desktop.
Help me create a regex that captures the first quoted string and the second quoted string!
/* This is not important but maybe useful to the regex */
"this.is.a.reverse-dns.thing" = "Blackbox “Stealth” T-Shirt";
/* This is not important but maybe useful to the regex */
"this.is.another.reverse-dns.thing-it.can.have-hyphens" = "I’m a long string.
I also have line breaks and sometimes \"escaped quotation marks\"
📦 Oh and emojis.";
/* This is not important but maybe useful to the regex */
"this.is.the.end.maybe" = "le fin";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment