title: Replace partial matching string with bold string
body: <p>I would like to replace matched parts of a string by bold strings.</p>
  
  <pre><code>const str = 'This is an Example';
  const term = 'exam';
  </code></pre>
  
  <p>Now I would like to get the result</p>
  
  <pre><code>This is an &lt;strong&gt;Exam&lt;/strong&gt;ple
  </code></pre>
  
  <p>I tried to use an regEx, but this seams to have a wrong syntax and also with this the uppercase of <em>Example</em> would be ignored:</p>
  
  <pre><code>const result = str.replace(new RegExp(escapeRegExp(term), 'g'), '&lt;strong&gt;' + term + '&lt;/strong&gt;');
  </code></pre>