字符类 [:alnum:]=[a-zA-Z0-9] [:alpha:]=[a-zA-Z] [:digit:]=[0-9] [:lower:]=[a-z] [:upper:]=[A-Z] [:xdigit:]=[a-fA-F0-9] 重复元字符 * = >=0 + = >=1 = {1,} ? = {0,1} {n} 指定数目 {n,} = >=n {n,m} = >=n and <=m
字符类 [:alnum:]=[a-zA-Z0-9] [:alpha:]=[a-zA-Z] [:digit:]=[0-9] [:lower:]=[a-z] [:upper:]=[A-Z] [:xdigit:]=[a-fA-F0-9] 重复元字符 * = >=0 + = >=1 = {1,} ? = {0,1} {n} 指定数目 {n,} = >=n {n,m} = >=n and <=m
转载于:https://www.cnblogs.com/sea-stream/p/11306598.html