Q:

Extracting text between quotes that has escaped quotes

I have the following string:
text()=["He said\"Hello\""]/something

I want to write a regular expression to extract the following string from the above string:
He said \"Hello\"

How do I go about doing this?
I am writing the code in Java.

A:

use this pattern  
"((?:\\"|[^"])*)"

Demo
resutls = He said\"Hello\"
then simply replace \" with "

