【发布时间】:2012-05-23 10:17:00
【问题描述】:
简单的问题:
这是执行替换的最有效方式,例如:
"Some tekst with a link like this <ref>linktekst</ref>"
到
"Some tekst with a link like this <a href="linktekst">linktekst</a>"
在 groovy 中?
文本中很容易有多个标签,应该被替换,linktext当然是<ref>标签的主体。
【问题讨论】:
标签: string performance groovy replace