日期:2014-05-17 浏览次数:20910 次
s=" 我爱你中国 爱我中华 "
Set myRegExp = New RegExp myRegExp.IgnoreCase = True myRegExp.Global = True myRegExp.Pattern = "^(\r\n)+" s = chr(13) & chr(10) & chr(13) & chr(10) & "aa" & chr(13) & chr(10) & chr(13) & chr(10) & "bb" & chr(13) & chr(10) s = myRegExp.Replace(s, "") myRegExp.Pattern = "(\r\n)+$" s = myRegExp.Replace(s, "") response.write s