日期:2014-05-17  浏览次数:20952 次

高人帮忙看看这个正则表达式啥意思?
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