Vitacillina cosa centra la tua risposta con quello che chiede naverit? :master:
naverit... tu dovresti sfruttare le regular expressions per queste cose... ti faccio un esempio
codice:
Function EvidenziaTesto(testo,trova,prima,dopo)
Set RegEx = New RegExp
RegEx.Pattern = "(" & trova & ")"
RegEx.Global = True
RegEx.IgnoreCase = True
EvidenziaTesto = RegEx.Replace(testo,prima & "$1" & dopo)
End Function
testo = "Tanto va la gatta al LARDO che ci lAsCiA lo zampino"
Response.Write testo & "<hr>"
Response.Write EvidenziaTesto(testo,"la","<span style='background-color:yellow;'>","</span>")