Check if String contains other String C# -
this question has answer here:
- how can check if string exists in string 8 answers
i'm trying find out if string contains string this:
var s1 = "test name*" var s2 = "testname"
if checked should return true.
try this:
var exists = s1.replace(" ", "").tolower().contains(s2.tolower());
wiki
Comments
Post a Comment