java中数据匹配
package myTest; import java.util.regex.Matcher; import java.util.regex.Pattern; public class TestPattern { public static void main(String[] args) { Pattern p = Pattern.compile("1234"); Matcher m = p.matcher("1234"); System.out.println(m.find()); } }
详细原文地址 https://www.jb51.net/article/219709.htm