由买买提看人间百态

topics

全部话题 - 话题: megb1
(共0页)
d***a
发帖数: 316
1
来自主题: CS版 - help about regex
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
来自主题: Linux版 - help about regex (转载)
【 以下文字转载自 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]+
g**********t
发帖数: 475
3
来自主题: CS版 - help about regex
[a-z] 不包含数字!megb1这种匹配不上
d***a
发帖数: 316
4
来自主题: Linux版 - help about regex (转载)
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.
(共0页)