title: How to replace using regex?
body: <pre><code>var result = [{&quot;figure figure watch?v=&quot;}, {&quot;figure data watch?v=&quot;}]
  console.log(result.replace(res=&gt; res.('figure', 'ifigure', 'watch?v=' , 'embeded/')))
  </code></pre>
  <p>I want result = [{&quot;ifigure ifigure embeded/&quot;}, {&quot;ifigure data  embeded/&quot;}]</p>
  <p>Can you help?</p>