RE: Replacing Text without changing case??
This code works great, but case has to be exact.
Research.Text = Research.Text.R eplace(textboxS earch.Text, "<b>" +
textboxSearch.T ext + "</b>")
I found some c# code, but I can't make it work in vb.net:
Regex.Replace(R esearch.Text, textboxSearch.T ext, New
MatchEvaluator( HiLite), RegexOptions.Ig noreCase)
....
Public Shared Function HiLite(ByVal match As Match) As String
Return "<b>" + match.Value + "</b>*"
End Function
Its complaining about Hilite in the first line.
This code works great, but case has to be exact.
Research.Text = Research.Text.R eplace(textboxS earch.Text, "<b>" +
textboxSearch.T ext + "</b>")
I found some c# code, but I can't make it work in vb.net:
Regex.Replace(R esearch.Text, textboxSearch.T ext, New
MatchEvaluator( HiLite), RegexOptions.Ig noreCase)
....
Public Shared Function HiLite(ByVal match As Match) As String
Return "<b>" + match.Value + "</b>*"
End Function
Its complaining about Hilite in the first line.
Comment