新手请教正则_如何找出这个07:48谢谢!![已解决]
本帖最后由 masterpcc 于 2010-4-16 12:01 编辑<td align="center" scope="row"><input name="button2" type="button" class="select_botton_work" id="button2" value="上班" onclick="location.href='index.php?action=PunchInfo&active=in'">
07:48
</font>
</td>
这个07:48这个时间会变动,用什麽方法取得这个变动时间?谢谢! 只有一个时间?$Str = _
'<td align="center" scope="row"><input name="button2" type="button" class="select_botton_work" id="button2" value="上班" onclick="location.href=' & "'" & 'index.php?action=PunchInfo&active=in' & "'" & '"> ' & @CRLF & _
' 07:48' & @CRLF & _
' </font>' & @CRLF & _
' ' & @CRLF & _
' </td>'
Msgbox(0, '原字符串', $str)
$str = StringRegExpReplace($str, '(?s).+(\d\d:\d\d).+', '$1')
Msgbox(0, '时间', $str)
谢谢afan超级版主!!
页:
[1]