I want to replace some text to other text which contains elements of basic text.
For example:
text text
blabla HYPERLINK "mailto:x@x.com"x@x.com
text text
I want to replace HYPERLINK "mailto:x@x.com"x@x.com to <a href="x@x.com">x@x.com</a>
So the result should be:
text text
blabla <a href="x@x.com">x@x.com</a>
text text
How can I do that using Java?
Here’s how you could do this:
EDIT:
You could possible take a cue from the hyperlink markdown used here at SO and do the following for a more generalised solution: