title: Finding index inside a Javascript regular expression match
body: <p>i had string like this in javascript</p>
  
  <pre><code>var str = "This is my test string is Ingrédients";
  </code></pre>
  
  <p>the substring <code>"Ingrédients"</code> can be also as <code>"Ingredients"</code>
  how to get the index of substring <code>"Ingrédients"</code> from the above string
  by applying regular expression ( <code>Ingr[ée]dients</code> )</p>