java使用正则判断字符串
                
                
                
                    
                        - 摘要:Stringstr="http://www.jb51.net/article/43949.htm";Stringregex=".*taobao.*";Matcherm=Pattern.compile(regex).matcher(str);System.out.println(m.matches());
- 标签:使用 Java 字符串 正则 
 
                
                    
                    String str="http://www.jb51.net/article/43949.htm";
		String regex=".*taobao.*";
		Matcher m=Pattern.compile(regex).matcher(str);
		System.out.println(m.matches());