title: Javascript Regex for a partial string match only
body: <p>I need to write a JavaScript RegEx that matches only the partial strings in a word.</p>
  
  <p>For example if I search using the string 'atta'</p>
  
  <p>it should return </p>
  
  <pre><code>true for khatta
  true for attari
  true for navrattan
  false for atta
  </code></pre>
  
  <p>I am not able to figure how to get this done using one RegEx. Thanks!</p>