在String.au3里面的函数Func _StringBetween($sString, $sStart, $sEnd, $fCase = False)
; Set correct case sensitivity
If $fCase = Default Then
$fCase = False
EndIf
Local $sCase = "(?is)"
If $fCase Then
$sCase = "(?s)"
EndIf
; If you want data from beginning then replace blank start with beginning of string
$sStart = $sStart ? "\Q" & $sStart & "\E" : "\A"
; If you want data from a start to an end then replace blank with end of string
$sEnd = $sEnd ? "(?=\Q" & $sEnd & "\E)" : "\z"
Local $aReturn = StringRegExp($sString, $sCase & $sStart & "(.*?)" & $sEnd, 3)
If @error Then Return SetError(1, 0, 0)
Return $aReturn
EndFunc ;==>_StringBetween
里面的最后一句
Return $aReturn
应该改成
Return $aReturn[0]
不信你就试试 !! |