Local $sSource = '<IsNewMedia>false</IsNewMedia>' Local $aSRE = StringRegExp($sSource, "(?mi)_\d+'>(.+?)<", 1) MsgBox(0,"提取字符串","原字符串" & $sSource & @crlf & "新字符串" &$aSRE[0])
Local $sSource = "<span id='User_1'>张三</span>" MsgBox(0, '源字符串', $sSource) Local $aSRE = StringRegExp($sSource, "(?mi)_\d+'>(.+?)<", 1) MsgBox(0,"提取字符串",$aSRE[0])
举报
Local $sSource = _ '<IsNewMedia>false6573567</IsNewMedia>' & @CRLF & _ '<IsSearch>true</IsSearch>' & @CRLF & _ '<IsAttractFrm>true</IsAttractFrm>' & @CRLF & _ '<VadValue>3000000000</VadValue>' & @CRLF Local $aSR = StringRegExp($sSource, "(?i)(<IsNewMedia>)(\w+)(</IsNewMedia>)", 1) Local $aSRE = StringRegExpReplace($sSource, $aSR[1], "替换") MsgBox(0, "替换", "原字符串:" & $sSource & @CRLF & "新字符串:" & $aSRE)
本版积分规则 发表回复 回帖后跳转到最后一页
|手机版|小黑屋|AUTOIT CN ( 鲁ICP备19019924号-1 )谷歌 百度
GMT+8, 2024-12-23 21:40 , Processed in 0.068828 second(s), 19 queries .
Powered by Discuz! X3.5 Licensed
© 2001-2024 Discuz! Team.