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

Popular posts from this blog

linux - xterm copying to CLIPBOARD using copy-selection causes automatic updating of CLIPBOARD upon mouse selection -

c++ - qgraphicsview horizontal scrolling always has a vertical delta -