Skip to content

Instantly share code, notes, and snippets.

@bastjan
Created March 21, 2018 14:26
Show Gist options
  • Save bastjan/25560805a8fd06e4e9e69920796b570f to your computer and use it in GitHub Desktop.
Save bastjan/25560805a8fd06e4e9e69920796b570f to your computer and use it in GitHub Desktop.
string regex without lookarounds "asd\" asd"
/"([^\\]\\"|[^"])*?"/

Sample Data:

"ASD"
"asd\" asd"
"asd\\" "asd"
"asd"
""
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment