﻿id	summary	reporter	owner	description	type	status	milestone	component	version	severity	resolution	keywords	cc
2149	_StringBetween does not accept NULL-chars in the boundary strings	anonymous		"When using NULL-characters in the start or end string, _StringBetween does not work. The following version is fixed:

{{{
Func _StringBetween($s_String, $s_Start, $s_End, $v_Case = -1)

    ; Set case type
    Local $s_case = """"
    If $v_Case = Default Or $v_Case = -1 Then $s_case = ""(?i)""

    ; Escape characters
    Local $s_pattern_escape = ""(\.|\||\*|\?|\+|\(|\)|\{|\}|\[|\]|\^|\$|\\|\0)""
    $s_Start = StringRegExpReplace($s_Start, $s_pattern_escape, ""\\$1"")
    $s_End = StringRegExpReplace($s_End, $s_pattern_escape, ""\\$1"")

    ; If you want data from beginning then replace blank start with beginning of string
    If $s_Start = """" Then $s_Start = ""\A""

    ; If you want data from a start to an end then replace blank with end of string
    If $s_End = """" Then $s_End = ""\z""

    Local $a_ret = StringRegExp($s_String, ""(?s)"" & $s_case & $s_Start & ""(.*?)"" & $s_End, 3)

    If @error Then Return SetError(1, 0, 0)
    Return $a_ret
EndFunc   ;==>_StringBetween
}}}"	Bug	closed		Standard UDFs	3.3.9.1	None	Works For Me		
