Erik Åsland
Erik Åsland

Reputation: 9782

Need Python regex for all characters between double quotes after 'returned'

I have an error message response...

<HttpError 404 when requesting https://www.googleapis.com/bigquery/v2/projects/di-dtbqquery-us-poc-1/queries?alt=json returned "Not found: Table di-dtbqquery-us-poc-1:lab_auxiliary.antonioTes">`

I only need the text between the double quotes: "Not found: Table ry-us-poc-1:lab_aiary.antes"

What would the correct regex be for all characters between the double quotes only after the returned bit in the error message? I have scoured stack overflow trying to find specific regex and haven't had any luck. Can anyone please give me a hand?

Upvotes: 0

Views: 60

Answers (1)

Mateusz Soltysik
Mateusz Soltysik

Reputation: 805

Try something like this:

.*returned "(?P<error_message>.*)"

Upvotes: 2

Related Questions