摘要: JAVA正则表达式 Pattern和Matcher都没啥用,来个实在的:package regex;import java.util.regex.Matcher;import java.util.regex.Pattern;/** * @author yanlei * 北美电话号码匹配 * */public class TeleNumber { public static void main(String[] args){ //匹配电话号码格式的正则表达式... Pattern regex = Pattern.compile("^\\(?([0-9]{3})\... 阅读全文
posted @ 2013-04-17 21:46 linsen@java 阅读(566) 评论(0) 推荐(0) 编辑