摘要: String regex1 = "/assembly/action/browsePage.do//?channelID=(//d*)$"括号内(//d*)表示参数String transformed_link = link.replaceAll("&", "&").replaceAll(regex1,"/staticPages/$1/index.html")$1匹配第一个参数那天这个问题还弄蛮久。。。 阅读全文
posted @ 2009-07-10 15:54 super_mario 阅读(253) 评论(0) 推荐(0) 编辑
摘要: public String getFileName(String uri){String staticFileName = uri.substring(uri.lastIndexOf("/")+1);return staticFileName;} 阅读全文
posted @ 2009-07-10 15:48 super_mario 阅读(335) 评论(0) 推荐(0) 编辑