"([\"'])(?:\\\\?+.)*?\\1"
I came up to this regexp to match all quoted strings.. It seems to work great... The problem is how to match the text that isnt inside quotes.. The inverse -negative somehow...
I read the documentation and
(?!(([\"'])(?:\\\\?+.)*?\\1))
doesnt work