157
rated 0 times
[
162]
[
5]
/ answers: 1 / hits: 16021
/ 13 Years ago, thu, september 1, 2011, 12:00:00
Possible Duplicate:
JavaScript: string contains
I'm looking for an algorithm to check if a string exists in another.
For example:
'Hello, my name is jonh LOL.'.contains('Hello, my name is jonh'); //true
'LOL. Hello, my name is jonh'.contains('Hello, my name is jonh'); //true
Thanks in advance.
More From » javascript