#include <Array.au3>
Local $Str = _
' _Callback( ' & @CRLF & _
' {"data":{ ' & @CRLF & _
' "title_num":30, ' & @CRLF & _
' "titlelist":[{"id":1368757945, ' & @CRLF & _
' "pubtime":1368757945, ' & @CRLF & _
' "reply":汉化,} ' & @CRLF & _
' {"id":1368704430, ' & @CRLF & _
' "pubtime":1368704430, ' & @CRLF & _
' "reply"":明天,} ' & @CRLF & _
' {"id":1368704380, ' & @CRLF & _
' "pubtime"":1368704380, ' & @CRLF & _
' "reply":舔舔,} '
;;MsgBox(0, '原字符串', $Str)
Local $aSR = StringRegExp($str, '(?i)"id":(\d+)[^:]+:(\d+)[^:]+:(.+),', 3)
_ArrayDisplay($aSR, UBound($aSR))
组织成二维数组自己搞 |