举报
Dim $s[3] $s[0]="321\abcd\asdasdasd" $s[1]="123\efgh\efgerg" $s[2]="456\aabbcc\ohjtpyhkof" For $i=0 To 2 Step 1 $a=StringSplit($s[$i],"") MsgBox(0,"",$a[2]) Next
$aa=StringRegExp("321\abcd\asdasdasd","(?<=\\).*?(?=\\)",1) MsgBox(0,"",$aa[0])
Local $sReg $sText = '321\abcd\asdasdasd' & @CRLF & _ '456\aabbcc\ohjtpyhkof' & @CRLF & _ '123\efgh\efgerg' $aReg = StringRegExp($sText, '\\(.*)\\', 3) For $i = 0 To UBound($aReg) - 1 $sReg &= $aReg[$i] & @CRLF Next MsgBox(0, '', $sReg)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-8-3 22:06 , Processed in 0.086770 second(s), 24 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.