I have a string: string1 string2 - string3 string4
. I need it to break into two parts on -
(pay attention to the space on either side of the "-"). I have the following code that does not work as expected:
#include <MsgBoxConstants.au3> #include <String.au3> Local $test = _StringExplode("string1 string2 - string3 string4", " - ") MsgBox($MB_SYSTEMMODAL, "Title", $test[1])
The output is string2
. I expected this to be string3 string4
.

There should be a little supervision, but it's hard for me to find it.
source share