我有一个字符串,格式如下:
some other string @[Foo Foo](contact:2) some other string @[Bar Bar](contact:1) still some other string
现在我想将这个字符串转换为
some other string <a href="someurl/2">Foo Foo</a> some other string <a href="someurl/1">Bar Bar</a> still some other string
基本上需要用Groovy和正则表达式将@[某个名字](联系人:ID)
替换为URL,那么最高效的方法是什么?