举报
\[(.*?)\]
\[([^]]+)]
### 友情提示:本脚本由 Au3.REHelper 于 2018/10/16 20:18 自动生成,不保证其正确性,请自行测试 ### #include <Array.au3> Local $Str = 'CAJViewer 7.2 - [12.caj]' MsgBox(0, '原字符串', $Str) Local $Test = StringRegExp($str, '\[([^\]]+)]', 3) If Not @Error Then MsgBox(0, '匹配数量: ' & UBound($Test), '其中[0]元素为: ' & $Test[0]) _ArrayDisplay($Test, UBound($Test))
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-3-10 16:12 , Processed in 0.083916 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.