d***a 发帖数: 316 | 1 Why the following three are not covered by my regex? I am using egrep.
Thank you very much.
gsaunix:*:1604:megb1,paul
rainlab:*:1608:megb1,michal
mgis:*:1597:megb1,michal,nafisa
my regex
.+:\*:[0-9]+:[a-z]+,[a-z]+ |
|
d***a 发帖数: 316 | 2 【 以下文字转载自 CS 讨论区 】
发信人: dunfa (蹲着发财), 信区: CS
标 题: help about regex
发信站: BBS 未名空间站 (Sun May 15 19:02:39 2011, 美东)
Why the following three are not covered by my regex? I am using egrep.
Thank you very much.
gsaunix:*:1604:megb1,paul
rainlab:*:1608:megb1,michal
mgis:*:1597:megb1,michal,nafisa
my regex
.+:\*:[0-9]+:[a-z]+,[a-z]+ |
|
|
d***a 发帖数: 316 | 4 Some guy in CS board replied like this and it is verified in my system.
.+:\*:[a-z]+:[a-z0-9]+.[a-z0-9]+
because there is a 1 in the megb1, so [0-9]+ is necessary
Enjoy. |
|