I am trying to split the line only into white spaces ( \s ), but this is not between the "quoted" section.
I map the entire text between these cited sections as follows:
(['"`]).*?\1
Regex101
However, when I try to add this as a negative look, to separate only the white spaces outside these quotes, I cannot get it to work:
\s(?!(['"`]).*?\1)
Regex101
How can I separate only spaces that are not in quotation marks?
javascript split regex
Kevbot
source share