Sometimes I do not understand Autoit...
Why does it give "Error: Subscript used with non-Array Variable" on the switch instruction of the following simple script?
Dim array1D[1]
array1D[0] = ""
array1D = StringRegExp("one two three","ten|eleven",3)
switch array1D[0]
case "ten"
msgbox(0,"","ten")
case "eleven"
msgbox(0,"","eleven")
case else
msgbox(0,"","else...")
endswitch
if UBound($array1D) > 1 then msg(0,"","more than 1 match found")