regex - Matching on double quote pair with quotes inside -
i have string has phrases wrapped in quotes, can have quotes inside them.
i need match on outside pair, example,
string: this "the string "we" working" on
i need find `"the string "we" working"
i have tried \"([^\"]*?)\"
finds "the string", "are working on"
.
is possible regex?
you should able use:
(\".*\")
...greedily matching until find last "
character.
Comments
Post a Comment