What does the regex \S mean in JavaScript? [duplicate] November 22, 2022 by Tarik \s matches whitespace (spaces, tabs and new lines). \S is negated \s.