title: regex used in javascript array indexOf
body: <p>I need to find the index of the word in array .But for the following scenario</p>
  
  <pre><code>var str="hello how are you r  u fineOr not .Why u r not fine.Please tell wats makes u notfiness".
  var splitStr=str.split(" ");
  //in splitStr array fineOr is stored at da index of 6.
  //in splitStr array notfiness is stored at da index of 18.
  var i=splitStr.indexOf("**fine**");
  var k=splitStr.lastindexOf("**fine**");
  console.log('value i-- '+i); it should log value 6
  console.log('value k-- '+k); it should log value 18
  </code></pre>
  
  <p>How do I need to pass the regex for searching the string "fine" for the function indexOf of array?</p>