Returns the string between the start search string and the end search string.
#Include <String.au3>
_StringBetween($s_String, $s_Start, $s_End [, $v_Case = -1])
Parameters
| $s_String | The string to search. |
| $s_Start | The beginning of the string to find. Passing a blank string starts at the beginning |
| $s_End | The end of the string to find. Passing a blank string searches from $s_Start to end |
| $v_Case | [optional] Case sensitive search. Default or -1 is not Case sensitive else Case sensitive. |
Return Value
| Success: | A 0 based $array[0] contains the first found string. |
| Failure: | 0 |
| @error: | 1 - No inbetween string found. |
Remarks
2009/05/03 Script breaking change, removed 5th parameter
Related
Example
#AutoIt3Wrapper_Au3Check_Parameters=-d -w 1 -w 2 -w 3 -w 4 -w 5 -w 6
#include <String.au3>
#include <Array.au3>
_Main()
Func _Main()
Local $aArray1 = _StringBetween('[18][20][3][5][500][60]', '[', ']')
_ArrayDisplay($aArray1, 'Default Search')
EndFunc ;==>_Main