In javascript, what is the regex for alone spaces, not spaces between characters?
\s+
works for all whitespace.
What I am trying to do is if the string is just whitespace and not white-space with other characters, then do something.
Here is what I have so far: if(/regexp/i.exec(str) !== null) // do something