I need to write a JavaScript RegEx that matches only the partial strings in a word.
For example if I search using the string 'atta'
it should return
true for khatta
true for attari
true for navrattan
false for atta
I am not able to figure how to get this done using one RegEx. Thanks!