java 字符串匹配函数
2016-07-27
54
去掉字符串中匹配 的字符串复制代码 代码如下:/** * 去掉字符串中匹配 的字符串 * * @author zhujie * @return String regex 要替换的内容 value 字符串 state 替换的内容变成什么 */ public static String toRegex(String regex, String value, String state) { Pattern p = Pattern.compile(regex); ...