LinuxSir.cn,穿越时空的Linuxsir!

 找回密码
 注册
搜索
热搜: shell linux mysql
查看: 943|回复: 1

元字符

[复制链接]
发表于 2009-11-30 11:22:27 | 显示全部楼层 |阅读模式
关于linux下的bash、grep、awk、sed等使用的元字符与正则表达式的总结,

详见: http://blog.exacto.me/html/2009/44_metacharacters.html
发表于 2009-11-30 12:45:24 | 显示全部楼层
  1. root [ /usr/src/txt2regex-0.8 ]0# txt2regex --showmeta
  2.        awk       +       ?               |      ()
  3.         ed      \+      \?    \{\}      \|    \(\)
  4.      egrep       +       ?      {}       |      ()
  5.      emacs       +       ?              \|    \(\)
  6.     expect       +       ?               |      ()
  7.       find       +       ?              \|    \(\)
  8.       gawk       +       ?      {}       |      ()
  9.       grep      \+      \?    \{\}      \|    \(\)
  10. javascript       +       ?      {}       |      ()
  11.        lex       +       ?      {}       |      ()
  12.       lisp       +       ?             \\|  \\(\\)
  13.       mawk       +       ?               |      ()
  14.      mysql       +       ?      {}       |      ()
  15.        ooo       +       ?      {}       |      ()
  16.       perl       +       ?      {}       |      ()
  17.        php       +       ?      {}       |      ()
  18.   postgres       +       ?      {}       |      ()
  19.   procmail       +       ?               |      ()
  20.     python       +       ?      {}       |      ()
  21.        sed      \+      \?    \{\}      \|    \(\)
  22.        tcl       +       ?               |      ()
  23.   vbscript       +       ?      {}       |      ()
  24.         vi   \{1\}  \{01\}    \{\}            \(\)
  25.        vim      \+      \=     \{}      \|    \(\)
  26. NOTE: . [] [^] and * are the same on all programs.
  27. root [ /usr/src/txt2regex-0.8 ]0#
复制代码
回复 支持 反对

使用道具 举报

您需要登录后才可以回帖 登录 | 注册

本版积分规则

快速回复 返回顶部 返回列表