1.
Pattern wikiWordMatcher = Pattern.compile("(http://|ftp://|https://|www.){0,1}[a-zA-Z0-9\\-\\.]+?\\.(org|edu|uk|hk|com|net|cn|me|tw|fr|be)[^\\s]*"); //定义正则表达式
String mentionsScheme = String.format("%s/?%s=",Constants.MENTIONS_SCHEMA, Constants.PARAM_UID); //格式化字符串,指定跳转意图
Linkify.addLinks(textView, wikiWordMatcher, mentionsScheme); //将TextView的字符串根据正则去替换为链接