本人菜鸟,半桶水不够,不会正则,给你弄一个简单点的。你看能否可行。
首先将你这个$info保存为一个TXT,然后。。
Local $file = FileOpen("12.txt", 0)
If $file = -1 Then
MsgBox(0, "错误", "不能打开文件.")
Exit
EndIf
While 1
Local $line = FileReadLine($file)
If @error = -1 Then ExitLoop
If StringInStr ( $line, "08 EXP 6.0") Then MsgBox(0, "读取的行:", $line)
If StringInStr ( $line, "09 EXP 6.0") Then MsgBox(0, "读取的行:", $line)
If StringInStr ( $line, "10 EXP 6.0") Then MsgBox(0, "读取的行:", $line)
If StringInStr ( $line, "11 EXP 6.0") Then MsgBox(0, "读取的行:", $line)
Wend
FileClose($file)
|