本帖最后由 lixiaolong 于 2011-10-19 23:40 编辑
回复 4# suntech Local $Str = _
'[General]' & @CRLF & _
'Manufacturer=fee' & @CRLF & _
'Model=eef' & @CRLF & @CRLF & _
'[Support Information]' & @CRLF & _
'Line1=' & @CRLF & _
'Line2=aaaa' & @CRLF & _
'Line3=bbbb' & @CRLF & _
'Line4=' & @CRLF & _
'Line5=' & @CRLF & _
'Line55=' & @CRLF & _
'Line33='
MsgBox(0, '', $Str)
Local $Test = StringRegExp($str, '(?s)(?i)\[Support Information\].+(line\d*)=.*$', 3)
If Not @Error Then MsgBox(0, 'Line',$Test[0])
Local $Test = StringRegExp($str, '(?s)(?i)\[Support Information\].+line(\d*)=.*$', 3)
If Not @Error Then MsgBox(0, 'Line',$Test[0])
|