I am trying to figure out how to check if a string contains another while ignoring case using .text.contains.
As it stands right now If I do this:
D
Or you can use RegularExpressions like this.
First, import the RegularExpressions:
Imports System.Text.RegularExpressions
then try this code:
Dim match As Match = Regex.Match(Textbox1.text,"My house is cold",RegexOptions.IgnoreCase) If match.Success Then Msgbox(match.Value) End If