Other Resources:
Negated white space character class - \S
What is abbreviation of a negated character class of all white space ASCII characters? Does it represents any characters except white space characters?
How to write a regular expression using a character class abbreviation to capture tokens separated by white space characters in a text string like this: Name=Jack Age=25 City=Paris?
✍: FYIcenter.com
![]()
The predefined abbreviation of a negated character class of all ASCII white space characters is \S, which is the same as [^ \t\r\n\f]. Note that:
\t - Horizontal tab (ASCII 0x09) \n - Linefeed or newline (ASCII 0x0A) \f - Form feed (ASCII 0x0C) \r - Carriage return (ASCII 0x0D)
\S will match any characters except ASCII white space characters.
The regular expression to capture tokens separated by white space characters is:
(\S+)
\S+ - 1 or more non white space characters
2013-01-23, 0👍, 0💬
Popular Posts:
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...
How to capture the Sogou web spider entries from Web log file? Here are some Web log file entries: 1...
All credit card numbers issued by Diners Club must start with 300 through 305, 36 or 38 and have 14 ...
According to the IEEE 802 specification, a MAC address has 6 groups of 2 hexadecimal digits separate...
All credit card numbers issued by American Express must start with 34 or 37 and have 15 digits. For ...