SyntaxFix
Write A Post
Hire A Developer
Questions
In my case i found better to use "string.search".
var str = "Some very very very long string"; var n = str.search("very");
In case it would be helpful for someone.