读书人

高人帮忙看看这个正则表达式啥意思?该

发布时间: 2012-03-04 11:13:33 作者: rapoo

高人帮忙看看这个正则表达式啥意思?
s/\s\d+:+\d+:+\d+//g;
自学了半天正则表达式,还是不解中。

[解决办法]
/\s\d+:+\d+:+\d+/g

估计是时间的。但有点不太对。
[解决办法]
882343:::::583234:::::893/g

[解决办法]
s/ 3:8:8//g

s/\s\d+:+\d+:+\d+//g
Match the characters "s/ " literally
Match a single character that is a "whitespace character " (spaces, tabs, line breaks, etc.)
Match a single digit 0..9
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the character ": " literally
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single digit 0..9
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the character ": " literally
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match a single digit 0..9
Between one and unlimited times, as many times as possible, giving back as needed (greedy)
Match the characters "//g " literally

读书人网 >ASP

热点推荐