We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent c9647f4 commit d5c818aCopy full SHA for d5c818a
1 file changed
StringRegExpSplit.au3
@@ -28,7 +28,7 @@ Func StringRegExpSplit($sString, $sPattern, $iLimit = 0, $iFlags = $PREG_SPLIT_N
28
If StringLen($aMatches[0]) = 0 Then $iOffset += 1
29
WEnd
30
31
- $sValue = StringMid($sString, $iOffset)
+ $sValue = StringMid($sString, $iPrevOffset)
32
If (Not BitAND($PREG_SPLIT_NO_EMPTY, $iFlags)) Or (Not $sValue == "") Then
33
ReDim $aReturn[UBound($aReturn, 1) + 1]
34
$aReturn[UBound($aReturn, 1) - 1] = $sValue
0 commit comments