hello,
I try to find non white space characters with the \S selector. when i write the \S with plus sign (\S+) the answer is different if i do it without the + sign. it returns only 13 instead of 36 when i use the + sign?
var str = "the man and the dog walked 4 in the avenue 5 d 4";
console.log(str.match(/\S+/gi).length);