求一个asp正则表达式
字符串
str="<p>.......内容...<p>..</p>...</p>"
str有可能包含<p></p>,有可能没有,有可能含有多对<p></p>
我现在希望把 字符串首尾的那对<p></p> 替换成空。
正则表达式怎么写? 正则表达式
[解决办法]
str="<p>.......内容...<p>..</p>...</p>"
set rx=new regexp
rx.Pattern="^<p[^>]*>
[解决办法]
</p>$"
rx.Global=true
rx.IgnoreCase=true
str=rx.Replace(str,"")
set rx=nothing
response.write str