I just got this from 4guysfromrolla ... check whether this would help you in any way ...
*****Code STARTS here*****
Function Highlight(Search_Str as String, _
InputTxt as String, _
StartTag as String, _
EndTag as String) As String
Dim ResultStr As String
Return Regex.Replace(InputTxt, "\b(" & Regex.Escape(Search_Str) & ")\b", _
StartTag & "$1" & EndTag, RegExOptions.IgnoreCase)
End Function
*****Code ENDS here*****
Best Regards
Vadivel
MVP ASP/ASP.NET
http://vadivel.thinkingms.com