public static String autoReviewLink(String input) {
        Matcher m = Pattern.compile(CODE_REGEX, Pattern.MULTILINE).matcher(input);
        if (m.find()) {
            String linkText = m.group().substring(6).trim();
            int s = m.start() + 6;
            int e = s + linkText.length();
            StringBuilder sb = new StringBuilder(m.group());
            sb.delete(s, e);
            String url = String.format("<a href=\"code://%s\">%s</a>", linkText, linkText);
            sb.insert(s, url);
            String reviews = EncodeUtils.encodeXml(input.substring(m.end()));
            sb.append(reviews);
            return sb.toString();
        }
        return input;
    }
Get file name from file path

@param path file path
@return file name
src/cn/ieclipse/smartim/common/IMUtils.java