Local $show = '', $i = 0
While 1
$offset = 1
$i += 1
$String = FileReadLine('test.txt', $i)
If @error = -1 then ExitLoop
$File = StringRegExp($String, '^\d{2}\s+.+', 2, 1)
If @error = 0 Then
$show &= $File[0] & @CRLF
ContinueLoop
EndIf
$File = StringRegExp($String, '^.+\)', 2, 1)
If @error = 0 Then
$show &= $File[0] & ','
StringReplace($String, $File[0], '')
EndIf
$File = StringRegExp($String, '^\s+MAX', 2, 1)
If @error = 0 Then
$show &= $File[0] & ','
StringReplace($String, $File[0], '')
EndIf
Do
$File = StringRegExp($String, '\s+(-?\d+\.?\d?/?\s+?\d?+)', 1, $offset)
If @error = 0 Then
$offset = @extended
$show &= $File[0] & ','
Else
$show = StringTrimRight($show, 1)
$show &= @CRLF
ExitLoop
EndIf
Until 0
Wend
MsgBox(0,'',$show)
|