3.2.3.7 ERE 运算符的优先级

    在 ERE 里运算符的优先级和 BRE 一样。由高至低列出了 ERE 运算符的优先级。
 
 
运算符 含义
[..]  [= =]  [: :] 用于字符对应的方括号符号
\metacharacter 转义的 meta 字符
[ ] 方括号表达式
( ) 分组
*+?{} 重复前置的正则表达式
无符号(no symbol) 连续字符
^  $  锚点
| 交替
 
[many@avention test]$ grep -E '(well.)$' en.txt

猜你喜欢

转载自www.cnblogs.com/avention/p/10307142.html
今日推荐