I am trying to split string in javascript by whitespaces, but ignoring whitespaces enclosed in quotes. So I googled this regular expression :(/\w+|"[^"]+"/g) but the problem is, that this isn’t working with accented chars like á etc. So please how should I improve my regular expression to make it work?
I am trying to split string in javascript by whitespaces, but ignoring whitespaces enclosed
Share
This matches non-spaces that don’t contain quotes, and matches text between quotes: