I have a line in the following format
blah blah [user:1] ho ho [user:2] he he he
I want to be replaced with
blah blah <a href='1'>someFunctionCall(1)</a> ho ho <a href='2'>someFunctionCall(2)</a> he he he
so two things replace [user: id] and the Call method
note: I want to do this in groovy, which would be an effective way to do this
user602865
source share