需求:匹配所有不以/abc , /adc, /ded开头的url
     要在web.xml中匹配filter用。
评论
anson2003 2006-12-27   回复
String regex = "^((/abc)|(/adc)|(/ded)).*";

System.out.println(!"/abc".matches(regex));
发表评论

该博客是同时发布到论坛的,无法评论在论坛已被锁定的帖子

hhongq
搜索本博客
博客分类
最近加入圈子
存档
最新评论