SyntaxFix
Write A Post
Hire A Developer
Questions
var str1 = "ABCDEFGHIJKLMNOP"; var str2 = "DEFG"; sttr1.search(str2);
it will return the position of the match, or -1 if it isn't found.