Check if String contains other String C# -




this question has answer here:

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

Popular posts from this blog

elasticsearch - what is the equivalent data type for geo_point in hibernate search? -

Jenkins: find build number for git commit -

firebase - How to wait value in Ionic 2 -