python regular expression characters records

Code Function

Matches any one character (except \ n)

[] Matches [] characters listed

\ D match numbers, i.e. 0-9

\ D matches non-digital, that is not a number

\ S match blank, space, tab key

\ S matches non-whitespace

\ W matches the non-special characters, namely az, AZ, 0-9, _, characters

\ W matching special characters, namely non-alphabetic, non-numeric, non-Chinese characters, non-_

Guess you like

Origin www.cnblogs.com/ClikeL/p/11494812.html