asp 中的[img=45.gif]
怎么样用正则表达得到 <img src "/face/45.gif " align= 'absmiddle '>
呢?
------解决方案--------------------
try
---------------------
<%
str = "[img=45.gif] "
set reg = new RegExp
reg.IgnoreCase=true
reg.Global=true
reg.Pattern= "\[img=([^\]]+)\] "
str = reg.replace(str, " <img src= " "/face/$1 " " align= 'absmiddle '> ")
Response.Write str
%>