title: replacing curly brackets and text in it with node
body: <p>I have a string</p>
  
  <pre><code>var str="Hello my name is {john/www.john.com} and welcome to my {site/www.site.com}."
  </code></pre>
  
  <p>i have extracted curly brackets and made an anchor tag out of them like</p>
  
  <pre><code>&lt;a href="www.john.com"&gt;john&lt;/a&gt;
  </code></pre>
  
  <p>What i am trying to do is replace curly brackets and content in them with these nodes.
  Is it possible using regExp? I have studied regExp on MDN but still cant figure out the way.</p>