Regex Space JavaScript

var str = "Is this all there is?";
var patt1 = /\s/g;
Maxime Laplace