I'll be referring to this thread:
My previous question, being similar, seems to require a completely new approach. And unfortunately I couldn't find a reliable solution.
Note that to not match across lines using the negated character class, you can exclude matching newlines using [^"\r\n]
and [^>\r\n]*