Java tutorial
//package com.java2s; public class Main { private static String markdown2HtmlLink(String link) { return link.replaceAll("\\[([^\\]]*?)\\]\\((.*?)\\)", "<a href=\"" + "$2" + "\">" + "$1" + "</a>"); } }