[] 匹配括号内的任意字符
对元字符进行转义,匹配以 开头的特殊序列表达了一些字符串组
^ 匹配字符串的开始;在[]中表示取反义;
$ 匹配字符串的结束;在[]中则消除了它的特殊含义
. 匹配除换行符以外的任意字符
| 或者
? 前面的字符(组)可有可无,并且最多被匹配一次
* 前面的字符(组)将被匹配零次或多次
+ 前面的字符(组)将被匹配一次或多次
() 表示一个字符组,括号内的字符串将作为一个整体被匹配
{n,m} 重复n到m次,{n} 重复n次,{n,} 重复n次或更多次