普通的替換函數
代碼如下:public function HighLight(S
dim tL
tL=""
tM=""
tR=S
k=instr(
do while k>
tL=tL & left(tR
tM=mid(tR
tL=tL & "<span style=
tR=right(tR
k=instr(
loop
HighLight=tL & tR
end function
tS="abcaBcabCaBCabcaBCa"
tF="bc"
response
response
response
正則表達式
代碼如下:Function HighLight(S
Dim regEx
Set regEx = New RegExp
regEx
regEx
regEx
HighLight = regEx
End Function
Response
From:http://tw.wingwit.com/Article/program/net/201311/14082.html