. 任意字符,包括空格
\ 转义字符
[]
-
[A-Za-z0-9]
[^0-9]
\d = [0-9]
\D = [^0-9]
\w = [a-zA-Z0-9_]
\W = [^a-zA-Z0-9_]
\s = [\f\n\r\t\v]
\S = [^\f\n\r\t\v]
正则表达式关键元素
最新推荐文章于 2024-08-19 20:59:41 发布
. 任意字符,包括空格
\ 转义字符
[]
-
[A-Za-z0-9]
[^0-9]
\d = [0-9]
\D = [^0-9]
\w = [a-zA-Z0-9_]
\W = [^a-zA-Z0-9_]
\s = [\f\n\r\t\v]
\S = [^\f\n\r\t\v]