如何实现下面的正则表达式
需求:匹配所有不以/abc , /adc, /ded开头的url
要在web.xml中匹配filter用。 1 楼 anson2003 2006-12-27 String regex = "^((/abc)|(/adc)|(/ded)).*";
System.out.println(!"/abc".matches(regex));
发布时间: 2012-11-08 08:48:12 作者: rapoo
如何实现下面的正则表达式
需求:匹配所有不以/abc , /adc, /ded开头的url
要在web.xml中匹配filter用。 1 楼 anson2003 2006-12-27 String regex = "^((/abc)|(/adc)|(/ded)).*";
System.out.println(!"/abc".matches(regex));