I want to use re.search to extract the first set of non-whitespace characters. I have the following pseudoscript that recreates my problem:
#!/usr/b
\s matches a whitespace character.
\s
\S matches a non-whitespace character.
\S
[...] matches a character in the set ....
[...]
...
[^...] matches a character not in the set ....
[^...]
[^\S] matches a character that is not a non-whitespace character, i.e. it matches a whitespace character.
[^\S]