找回密码
 加入
搜索
查看: 1754|回复: 2

[AU3基础] 新手请教正则_如何找出这个07:48谢谢!![已解决]

[复制链接]
发表于 2010-4-16 11:15:04 | 显示全部楼层 |阅读模式
本帖最后由 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这个时间会变动,用什麽方法取得这个变动时间?谢谢!

评分

参与人数 1金钱 +10 收起 理由
afan + 10 感谢主动将修改帖子分类为[已解决],请继续 ...

查看全部评分

发表于 2010-4-16 11:22:07 | 显示全部楼层
只有一个时间?
$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)
 楼主| 发表于 2010-4-16 12:00:02 | 显示全部楼层
谢谢afan超级版主!!
您需要登录后才可以回帖 登录 | 加入

本版积分规则

QQ|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度

GMT+8, 2024-6-18 04:32 , Processed in 0.082241 second(s), 24 queries .

Powered by Discuz! X3.5 Licensed

© 2001-2024 Discuz! Team.

快速回复 返回顶部 返回列表