First: Find the texts that are inside the quotations \"I want everything inside here\".
Second: To extract 1 sentence before quotation.
I would like to achieve t
Since you just want the last sentence I've cleared the regex for you : result
Explanation : First you're looking for something that is between quotes. And if there is multiples quotes successively you want them to match as one.
(\"[^\"]*\"(?: *\"[^\"]*\")*)
Does the trick. Then you want to match the sentence before this group. A sentence is starting with a CAPITAL letter. So we will start the match to the first capital encounter before the previously defined group (ie : not followed by any other CAPITAL letter)
([A-Z](?:[a-z0-9\W\s])*)
Put it togeither and you obtain :
([A-Z](?:[a-z0-9\W\s])*)(\"[^\"]*\"(?: *\"[^\"]*\")*)