$S1 = '张三,李四' $S2 = '张三,' $S3 = ',' $Str = StringRegExp($S2, '([^,]+)', 3) If @error = 0 Then MsgBox(0,'有效数组','有效数组') If @error = 1 Then MsgBox(0,'数组无效. 没有匹配项目','数组无效. 没有匹配项目')
MsgBox(0,0,$Str[0]&@CRLF&$Str[1])
查看全部评分
举报
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-23 17:02 , Processed in 0.080359 second(s), 27 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.