I have a string like this:
this text (an another text) "and a text" and again a text
What I want is to only match first text
. Other two text
words either is inside of parentheses or in quotes.
this text (an another text) "and a text" and again a text
^ this is I do want to capture. and this -> ^
How can I do this in a single regex match? I cannot find any solution for both cases in a single match.
text can be in any order.