~~~
;==========分割字符串===========
s:="aa-bb=cc==dd+-ee"
s1:=StrSplit(s,"-")
s2:=StrSplit(s,"+-")
s3:=StrSplit(s,["+","-"])
;===========打印结果=========
printArray(s1,"s1")
printArray(s2,"s2")
printArray(s3,"s3")
printArray(a,name){
c:=a.Count()
Loop,% c
{
result.=name . "[" . A_Index . "] " . a[A_Index] . "`r`n"
}
MsgBox,% result
}
Pause
~~~