title: Groovy String replacement
body: <p>I have string in following format</p>
  
  <pre><code>some other string @[Foo Foo](contact:2) some other string @[Bar Bar](contact:1) still some other string
  </code></pre>
  
  <p>now I want this string into</p>
  
  <pre><code>some other string &lt;a href="someurl/2"&gt;Foo Foo&lt;/a&gt; some other string &lt;a href="someurl/1"&gt;Bar Bar&lt;/a&gt; still some other string
  </code></pre>
  
  <p>so basically need to replace the <code>@[Some name](contact:id)</code>to url using groovy &amp;using reg ex what is the efficient way to do it</p>