标签:字符串like匹配
public boolean checkMatchFNOrFI(String[] strArray,String value){ boolean flag = false; for(String s : strArray){ if(!s.equals("")){ String temp = s.replaceAll("\\?", "\\\\w").replaceAll("\\*", "\\\\w*"); flag = value.matches(temp); if(flag){ break; } } } return flag; }
标签:字符串like匹配
原文地址:http://blog.csdn.net/moneyzhong/article/details/25278099