|

楼主 |
发表于 2007-5-19 02:16:15
|
显示全部楼层
Post by iveney
用.来匹配俄批"."是不对的,要用\转义吧?
第二种是可以的,不知为何你不行
[iveney@localhost Network]$ egrep --version
egrep (GNU grep) 2.5.1
我的也是这个版本阿。
我把33.19.76放在tmp.txt文件中,
运行egrep '([0-9]{2}[-./]){2}[0-9]{2}' tmp.txt
结果什么东西都没有显示出来 |
|