举报
$Str = 'Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz' $Test = StringRegExpReplace($str, '\s{2,}', ' ') $Test1 = StringRegExpReplace($Test, '(?<=@)\s', '') MsgBox(0, '替换结果', $Test1)
$sText = 'Intel(R) Core(TM)2 Quad CPU Q9400 @ 2.66GHz' $sRe = StringRegExpReplace($sText, '(?<= )\h+|(?<=@)\h+', '') MsgBox(0, '', $sRe)
查看全部评分
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2025-2-28 13:56 , Processed in 0.131800 second(s), 22 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.