### 友情提示:本脚本由 Au3.REHelper 于 2012/12/25 18:57 自动生成,不保证其正确性,请自行测试 ###
#include <Array.au3>
Local $Str = 'tr><td class="rowhead nowrap" valign="top" align="right">感谢者</td><td class="rowfollow" valign="top" align="left"><span id="thanksadded" style="display: none;"><input class="btn" type="button" value="感谢表示成功!" disabled="disabled" /></span><span id="curuser" style="display: none;"><span class="nowrap"><a href="userdetails.php?id=843" class=' & "'User_Name'><b>Chamlien</b></a></span> </span><span id=" & '"thanksbutton"><input class="btn" type="button" id="saythanks" onclick="saythanks(669);" value="你已说过谢谢" disabled="disabled" /></span> <span id="nothanks"></span><span id="addcuruser"></span><span class="nowrap"><a href="userdetails.php?id=843" class=' & "'User_Name'><b>Chamlien</b></a>" & @CRLF
MsgBox(0, '原字符串', $Str)
Local $Test = StringRegExp($str, '"saythanks\(669\);" value="([^"]*)"', 3)
If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($Test), '其中[0]元素为: ' & $Test[0])
_ArrayDisplay($Test, UBound($Test))
|