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

Asterisk AGI Python Script to Dialplan does not work -

python - Read npy file directly from S3 StreamingBody -

kotlin - Out-projected type in generic interface prohibits the use of metod with generic parameter -