title: Javascript, replace with regex, is it possible for this case?
body: <p>Is it possible to resolved with regex  ? </p>
  
  <p>I have an array of value : </p>
  
  <pre><code>var arr = ['eiusmod', 'sort', 'incididunt', 'dolor'];
  </code></pre>
  
  <p>And I have a string named <code>my_html</code>, who provide of <code>.html()</code></p>
  
  <pre><code>&lt;div data-sort="1"&gt;
  &lt;h1 data-position="1"&gt;Lorem ipsum dolor sit amet&lt;/h1&gt;
  &lt;strong&gt;search here : consectetur adipiscing elit, &lt;/strong&gt;
  &lt;div&gt;
  sed do &lt;u&gt;eiusmod&lt;/u&gt; tempor &lt;mark&gt;incididunt&lt;/mark&gt; ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  &lt;/div&gt;
  Duis aute irure &lt;i&gt;dolor&lt;/i&gt; in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  &lt;/div&gt;
  </code></pre>
  
  <p><strong>The objective:</strong></p>
  
  <p>Add a html tag in the variable my_html for each word (in my arr) found, like that </p>
  
  <pre><code>&lt;div data-sort="1"&gt;
  &lt;h1 data-position="1"&gt;Lorem ipsum &lt;mark&gt;dolor&lt;/mark&gt; sit amet&lt;/h1&gt;
  &lt;strong&gt;search here : consectetur adipiscing elit, &lt;/strong&gt;
  &lt;div&gt;
  sed do &lt;u&gt;&lt;mark&gt;eiusmod&lt;/mark&gt;&lt;/u&gt; tempor &lt;mark&gt;incididunt&lt;/mark&gt; ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat.
  &lt;/div&gt;
  Duis aute irure &lt;i&gt;&lt;mark&gt;dolor&lt;/mark&gt;&lt;/i&gt; in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.
  &lt;/div&gt;
  </code></pre>
  
  <p>Rules : </p>
  
  <ul>
  <li>Don't add a tag in attributes of tag</li>
  <li>Don't add a tag mark if there is already a mark for the word</li>
  </ul>
  
  <p>Thanks for your help guys, 
  Regards</p>