当前位置: 代码迷 >> ASP >> 高人帮忙看看这个正则表达式啥意思?该怎么解决
  详细解决方案

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

热度:359   发布时间:2012-03-04 11:13:33.0
高人帮忙看看这个正则表达式啥意思?
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