数据匹配之正则表达式
先来了解一下各字符代表的意思:
\d :digit(0-9) 数字0-9
\D :not a digit 非数字
\w :word character(a-z,A-Z,0-9,_) 大小写字母数字下划线
\W :not a word character 大小写字母数字下划线以外
\s :whitespace(space,tab,blank,line) 空格、tab。。
\S :non_whitespace 非空格
\b :word boundary
\B :not a word bounda
原创
2020-06-09 12:49:48 ·
320 阅读 ·
0 评论