Folloing function will Search specified string and make it Bold in HTML output. |
Click here to copy the following block | Function BoldSearch(ByVal strInput As String, ByVal strSearch As String) As String BoldSearch=Regex.Replace(strInput, strSearch, "<B>" & "$&" & "</B>", RegexOptions.IgnoreCase) End Function |
|