Whitespace
What this is
\s in JavaScript is Unicode-aware with the u flag in modern engines. Split on \s+ to tokenize sloppy logs.
/\s+/gone two three four
FAQ
- Only spaces?
- Use [ ]+ if tabs and newlines must survive.
\s in JavaScript is Unicode-aware with the u flag in modern engines. Split on \s+ to tokenize sloppy logs.
/\s+/gone two three four