I am looking to match on a white space followed by anything except whitespace [i.e. letters, punctuation] at the start of a line in Python. For example:
` a` = True
` .` = True
` a` = False [double whitespace]
`ab` = False [no whitespace]
The rule re.match(" \w")
works except with punctuation - how do i include that?
Remember the following:
\s\S
\s
is whitespace\S
is everything but whitespaceIf you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With