开发者

Regular expression for dates

How would I write a 开发者_运维问答regex for Sun Mar 05 10:00:47 GMT 2011


Something like this would work, I reckon:

^(Sun|Mon|Tue|Wed|Thu|Fri|Sat) (Jan| ... | Dec) \d\d [0-2]\d:[0-5]\d:[0-5]\d (GMT| ... ) [12]\d\d\d$
0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜