In regular expressions, \S matches any single character that is not whitespace. Because \s matches whitespace—including spaces, tabs, and carriage returns—\S provides the complementary pattern for finding characters outside those categories. section 21.2
Recognizing the pattern
Pattern: \S. Use it when a match must contain a nonwhitespace character rather than a space, tab, or carriage return. section 21.2
