我有如下格式的数据,其中id后的数字是动态变化的,若有depart项,其后的数字也是动态变化的,怎么能用一个表达式来匹配下面类似的数据。谢谢~!
http://www.edu.cn/wlzx/RuleContent.asp?id=1766
http://www.edu.cn/wlzx/xueyuanContent.asp?id=1883
http://www.edu.cn/wlzx/newsContent.asp?id=3865
http://www.edu.cn/jwc/showArticle.asp?id=1352
http://www.edu.cn/gg/showNews.asp?id=3731&depart=124
http://www.edu.cn/gg/showArticle.asp?id=896&depart=124
http://www.edu.cn/gg/showDeclaration.asp?id=1462&depart=121
http://www.edu.cn/showDeclaration.asp?id=1473
http://www.edu.cn/showNews.asp?id=4498
http://www.edu.cn/wlzx/RuleContent.asp?id=1766
http://www.edu.cn/wlzx/xueyuanContent.asp?id=1883
http://www.edu.cn/wlzx/newsContent.asp?id=3865
http://www.edu.cn/jwc/showArticle.asp?id=1352
http://www.edu.cn/gg/showNews.asp?id=3731&depart=124
http://www.edu.cn/gg/showArticle.asp?id=896&depart=124
http://www.edu.cn/gg/showDeclaration.asp?id=1462&depart=121
http://www.edu.cn/showDeclaration.asp?id=1473
http://www.edu.cn/showNews.asp?id=4498
解决方案 »
- 困惑与Java序列化
- java.net.ConnectException: Connection timed out: connect
- 谁帮我指出错误并改正,我立马给100分<在线等.....>
- <求助>java运行难题~
- dos 下运行UI吗
- JComboBox为可编辑时为什么不能每按下一个键就反应一次???在线等!!!!!!!!!!!!急急急>>>>>>>>>>
- 请教一个关于得到Method.invoke返回值的问题,请多多指教,谢谢
- 我想写一个Java applet,用什么开发工具较好?
- 请教jbuilder5的安装问题
- 我是初学者,请大家帮助我解答我这几个小问题,谁帮我解决了给谁分!!!
- 请问怎样用java获取一个带有框架的网页
- 简单问题:jsp 调用自己写的类,出现了一个错误,求助!!!
^http://www.dedu.cn/.*\\?id=\\d+(\\&depart=\\d+)?$
^http://www.dedu.cn/.*\\?id=\\d+(\\&depart=\\d+)?$
"http://www.edu.cn/.+\\?id=\\d+(\\&depart=\\d+)?"