正则表达式如何用正则表达是表达字符串中不匹配 ".php "和 "img ",满足这两个条件. 谢谢[解决办法]用String的indexOf( "... ") <0也很简单啊[解决办法]String regEx= "[\\.phpimg] ";