回复 1# sleep365
不明白你什么意思,乱搞了一下提出时间的
### 友情提示:本脚本由 Au3.REHelper 于 2012/10/31 15:32 自动生成,不保证其正确性,请自行测试 ###
#include <Array.au3>
Local $Str = _
'221.235.69.239 2010-3-8 9:56:32' & @CRLF & _
'119.147.12.191 2010-3-16 09:40' & @CRLF & _
'59.172.110.160 2010-3-15 11:28' & @CRLF & _
'59.173.240.82 2010-3-15 16:13' & @CRLF & _
'59.172.108.90 2010-3-11 16:12' & @CRLF & _
'119.98.160.201 2010-3-13 17:12' & @CRLF & _
'221.235.69.239 2012-3-16 19:40' & @CRLF & _
'119.147.12.191 2010-3-16 09:40' & @CRLF & _
'219.140.172.210 2010-3-12 09:26' & @CRLF & _
'59.172.110.160 2010-3-15 11:25' & @CRLF & _
'59.172.126.131 2010-3-18 01:00' & @CRLF & _
'59.174.75.97 2010-3-14 11:49' & @CRLF & _
'59.172.108.123 2010-3-18 08:36' & @CRLF & _
'219.140.14.253 2010-3-13 02:12' & @CRLF & _
'58.48.154.192 2010-3-13 18:06' & @CRLF & _
'59.174.215.127 2010-3-12 01:47' & @CRLF & _
'111.172.236.198 2010-3-22 23:55' & @CRLF & _
'58.49.103.165 2010-3-22 16:37' & @CRLF & _
'59.174.73.177 2010-3-21 08:26' & @CRLF & _
'111.172.95.81 2010-3-5 02:15' & @CRLF & _
'58.49.241.186 2010-3-13 14:37' & @CRLF & _
'59.174.21.8 2010-3-19 11:26' & @CRLF & _
'58.48.66.28 2010-3-23 21:43' & @CRLF & _
'58.49.209.199 2009-2-2 13:44' & @CRLF & _
'58.49.229.30 2009-2-25 22:16' & @CRLF & _
'221.232.138.14 2009-2-11 16:17' & @CRLF & _
'61.183.68.55 2009-2-25 09:30' & @CRLF & _
'58.49.178.103 2009-2-24 09:24' & @CRLF & _
'59.173.220.89 2009-2-23 08:33' & @CRLF & _
'59.172.125.34 2009-2-24 17:40' & @CRLF & _
'219.140.69.20 2009-2-23 17:20' & @CRLF & _
'59.173.20.82 2009-2-25 19:56' & @CRLF & _
'192.96.135.199 2009-2-25 17:30'
MsgBox(0, '原字符串', $Str)
Local $Test = StringRegExp($str, '\d{4}-\d{1,2}-\d{1,2} \d{1,2}:\d{1,2}', 3)
If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($Test), '其中[0]元素为: ' & $Test[0])
_ArrayDisplay($Test, UBound($Test))
如果理解错了,望见谅~~ |