Search for everything except whitespace - \S Think of it as similar to the character class [^ \r\t\f\n\v]
let whiteSpace = "Whitespace everywhere!"
let nonSpaceRegex = /\S/;
whiteSpace.match(nonSpaceRegex); // returns ["W,h,i,t,e,s,p,a,c,e,e,v,e,r,y,w,h,e,r,e"]