Regex with Accents
I'm working in a function (VB) to Hightlight some text (Search_Str) in a big string (InputTxt) with this function that works OK. But... i need to do this function capable of working with áíóú (accents).
For example.
If i seach "hello" in the string i need to highlight "hllo", "helló", "hlló"... etc.
This is the function.
Function Highlight(Search_StrasString, InputTxtasString, StartTagasString, EndTagasString)AsString Dim ResultStrAsString ResultStr = Regex.Replace(InputTxt, "(" & Regex.Escape(Search_Str) & ")", StartTag & "$1" & EndTag, RegExOptions.IgnoreCase) return ResultStr EndFunction |
Thanks a lot!!!

