"([\"'])(?:\\\\?+.)*?\\1"
I went over to this regex to match all the lines quoted. It seems to work fine ... The problem is how to match text that is not in quotation marks. Inverse-non-negative somehow ...
I read the documentation and
(?!(([\"'])(?:\\\\?+.)*?\\1))
does not work
source share