title: Find & Replace with given array elements?
body: <p>Given the following:</p>
  
  <p>String: <code>"{Dog} loves {Cat}"</code>,</p>
  
  <p>RegExp: <code>{([^}]+)}</code>,</p>
  
  <p>Array: <code>["Scooby Doo", "Sylvester"]</code></p>
  
  <p>How can I easily achieve: <code>"Scooby Doo loves Sylvester"</code></p>