$Str = '[[["爱","爱","ai"]],,"zh-CN"]' Msgbox(0, 0, $str) $sR = StringRegExp($str, '\[\[\(.*)]\]', 3) If @error = 0 Then MsgBox(0, 0, $sR[0])
您需要 登录 才可以下载或查看,没有账号?加入
举报
Local $sR $sText = '[[["爱","爱","ai"]],,"zh-CN"]' $aReg1 = StringRegExp($sText, '\[\[\[(.+?)\]\]', 3) $aReg2 = StringRegExp($aReg1[0], '"(.+?)"', 3) For $i = 0 To UBound($aReg2) - 1 $sR &= $aReg2[$i] & ' ' Next MsgBox(0, '', $sR)
查看全部评分
$Str = '[[["爱","爱","ai"]],,"zh-CN"]' MsgBox(0, 0, StringRegExpReplace($str, '\[{3}"(.)","(.)","([^"]+)".+', '$1 $2 $3'))
Local $sR $sText = '[[["爱","爱","ai"]],,"zh-CN"]'&@CRLF&'[[["爱","爱","ai"]],,"zh-CN"]' $aReg = StringRegExp($sText, '"(.+?)"', 3) For $i = 0 To UBound($aReg) - 1 Step 4 $sR &= $aReg[$i] & ' '&$aReg[$i+1] & ' '&$aReg[$i+2]&@CRLF Next MsgBox(0, '', $sR)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-24 22:03 , Processed in 0.090613 second(s), 28 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.