asp正則替換內(nèi)容里的CSS樣式
網(wǎng)絡(luò) 2010/5/5 11:31:59 深山行者 字體:
大 中 小 瀏覽 11149
<%
str="<span style='font-size: 9pt; font-family: 宋體'>中國(guó)aaaaaaaaaaaaaaaaaaa深山 qwbm.com</span>"
Function ReplaceTest(patrn,str,replStr)
Dim regEx ' 建立變量。
Set regEx = New RegExp ' 建立正則表達(dá)式。
regEx.Pattern = patrn ' 設(shè)置模式。
regEx.IgnoreCase = True ' 設(shè)置是否區(qū)分大小寫(xiě)。
ReplaceTest = regEx.Replace(str, replStr) ' 作替換。
End Function
response.Write replacetest ("(<span.+?>)(.+?)(<\/span>)",str,"$15555555$3")
%>
- 相關(guān)閱讀
- 區(qū)分IE6,IE7和firefox的CSS hack
- 記錄滾動(dòng)條位置(使用userdate)
- 愛(ài)尚學(xué)生網(wǎng)
- '禁止站外提交頁(yè)面和數(shù)據(jù)
- 連云港酒店預(yù)訂
- windows xp 安裝IIS,設(shè)置IIS。
- 鹽城市開(kāi)心假日旅行社有限公司
- 實(shí)時(shí)輸入數(shù)字自動(dòng)轉(zhuǎn)換為貨幣形式并計(jì)算
- 共有0條關(guān)于《asp正則替換內(nèi)容里的CSS樣式》的評(píng)論
- 發(fā)表評(píng)論