Regular Expression Essay

re.search()#Search matching

w is # matches numbers, letters, underscores

d# matches numbers

[python] matches one of the inside of this

\n newline, can also match

Matches if the letter preceding the letter {n} is repeated n times

s{n,m}#s appears at least n times and at most m times

t|s# matches t or s

()# extract a part of the content

 

Guess you like

Origin http://43.154.161.224:23101/article/api/json?id=325160288&siteId=291194637