dim regEx,Matches
dim str1
str1="<html><head></head><body><p>这是我的文档</p></body></html>"
set regEx=new regExp
regEx.Pattern= "(.+?)</body>(.+?)"
regEx.IgnoreCase=true
regEx.Global=True
Matches=regEx.Replace(str1,"$1Good bye$2")
set regEx=nothing
主要是怎么从那里读出来我不知道,以上是再</body>前插入那句话