举报
;Local $sExclude = FileRead('数据.txt') Local $sExclude = _ 'A1B123C-01;2' & @CRLF & _ 'B2B321C-03;3' Local $a2[9][2] = [['A', '东'],['B', '南'],['C', '西'],['D', '北'],['E', '胡'],['1', '中'],['2', '发'],['3', '白'],['-', '杠']] Local $str = $sExclude, $sTest = $str For $i = 0 To UBound($a2) - 1 Step 1 $sTest = StringRegExpReplace($sTest, '(?<!;)' & $a2[$i][0], $a2[$i][1]) Next MsgBox(0, '', $str & @LF & '============' & @LF & $sTest)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-5-11 11:22 , Processed in 0.105243 second(s), 22 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2025 Discuz! Team.