- Home /
Question by
erenaydin · Mar 10, 2011 at 01:05 AM ·
javascriptstringsearch
string searching question
var a1 : String = "imissmommy"
function a11() {
if (str.search(a1,"mommy"))
print("momy is okay baby");
}
i want to search a string but i don't know how can i, str.search()? string.search()? what is the function? ty.
Comment
Best Answer
Answer by Statement · Mar 10, 2011 at 01:11 AM
if (a1.Contains("mommy"))
{
// ...
}
More information about String.Contains at MSDN.
Also, all String members.