python高级编程

正则表达式

正则表达式(regular expression)描述了一种字符串匹配的模式(pattern)

/[1-9][0-9]/
[1-9]设置第一个数字不是 0,[0-9]
表示任意多个数字:
+ 表示 1 次或多次出现。