Function ReplaceNoIgnoreCase(str,replStr)
If len(replStr)1 or str="" Then
ReplaceTest=str
Exit function
End If
Dim LoopN
LoopN=1
Dim TmpStr,inStrN,LenreplStr,Ustr,UreplStr
LenreplStr = Len(replStr)
TmpStr = str
Ustr = Ucase(str)
UreplStr = Ucase(replStr)
str=""
inStrN = inStr(Ustr,UreplStr)
Do While inStrN>0 and TmpStr>""
LoopN = LoopN+1
If LoopN>10 Then Exit Function
str=str Left(TmpStr,inStrN-1)
TmpStr = Mid(TmpStr,inStrN)
UStr = Mid(UStr,inStrN)
str=str "font color=ff0000>" Left(TmpStr,LenreplStr) "/font>"
TmpStr = Mid(TmpStr,LenreplStr+1)
UStr = Mid(UStr,LenreplStr+1)
inStrN = inStr(Ustr,UreplStr)
If inStrN1 Then str=strTmpStr
Loop
ReplaceTest = str
End Function
Response.Write "p>result:"ReplaceNoIgnoreCase("Flying Happy in the Sun ")
標(biāo)簽:柳州 襄陽 中山 威海 雞西 邯鄲 遵義 朔州
巨人網(wǎng)絡(luò)通訊聲明:本文標(biāo)題《如何實(shí)現(xiàn)非大小寫的替換?》,本文關(guān)鍵詞 如何,實(shí)現(xiàn),非,大小,寫的,;如發(fā)現(xiàn)本文內(nèi)容存在版權(quán)問題,煩請(qǐng)?zhí)峁┫嚓P(guān)信息告之我們,我們將及時(shí)溝通與處理。本站內(nèi)容系統(tǒng)采集于網(wǎng)絡(luò),涉及言論、版權(quán)與本站無關(guān)。上一篇:如何編寫一個(gè)加法器?
下一篇:如何終止瀏覽器的Cahce頁面?