If String Contains - Javascript

If String Contains - Javascript

code snippet

javascript
var string = "test";
var substring = "est";
var expr = /est/;

string.indexOf(substring) !== -1;

string.search(expr);

expr.test(string);

string.match(expr);

"Perfection is not attainable, but if we chase perfection we can catch excellence"

Contact me!

Have questions? Feel free to use the form or send me an email with any questions.

I will be responsive to your requests and your questions.