Tag: 大括号预览模式: 普通 | 列表
09-04
06

过滤{}中带有的英文的

第一种:
String reg = "\\{\\w*\\}(\\w*)";

Pattern ptt = Pattern.compile(reg, Pattern.CASE_INSENSITIVE);

Matcher m_other = ptt.matcher("{hezzla}你好");

System.out.println(m_other.replaceAll("$1"));

查看更多...

Tags: 过滤 英文 大括号

分类:Java&Jsp | 固定链接 | 评论: 0 | 引用: 0 | 查看次数: 307