$str = '<?xml version="1.0" encoding="utf-8"?><data>'&@CRLF& _
'<item url="movie.asp?id=5" target="_blank" img="Xml/hot/1.jpg" thumb="Xml/hot/1i.jpg" />'&@CRLF& _
'<item url="movie.asp?id=11259" target="_blank" img="Xml/hot/2.jpg" thumb="Xml/hot/2i.jpg" />'&@CRLF& _
'<item url="/" target="_blank" img="Xml/hot/3.jpg" thumb="Xml/hot/3i.jpg" />'&@CRLF& _
'<item url="movie.asp?id=587" target="_blank" img="Xml/hot/4.jpg" thumb="Xml/hot/4i.jpg" />'&@CRLF& _
'<item url="movie.asp?id=9270" target="_blank" img="Xml/hot/5.jpg" thumb="Xml/hot/5i.jpg" />'&@CRLF& _
'</data>'
$sn = StringRegExpReplace($str,"(?<=id\=)[0-9]{5}","替换")
MsgBox(0,"",$sn)
这样? |