Javascript case-insensitive matching and replacing?
<p>Basically, I need to be able to find certain words (by 'word' I mean a <strong>set of characters</strong>) in a string (case insensitive) and if they match, I need to insert a symbol after the first letter of that particular set of characters. I can't use search replace, as that would not preserve the case.</p>

<p>Example:</p>

<blockquote>
  <p>Brown brownies are in an oven. </p>
</blockquote>

<p>If the word I'm looking for is <code>brown</code>, and the character I want to insert is <code>*</code>, the result should be:</p>

<blockquote>
  <p>B*rown b*rownies are in an oven.</p>
</blockquote>

<p>What is the best way to do so in <strong>JS</strong>?</p>
