Topic: 如何利用正则表达式提取出URL地址中每个参数的名称和值

  Print this page

1.如何利用正则表达式提取出URL地址中每个参数的名称和值 Copy to clipboard
Posted by: cyan
Posted on: 2006-06-29 10:16

利用正则表达式与String.split方法,从"http://www.sohu.com/login.jsp?user=xx&pass=123"这样的URL地址中提取出每个参数的名称和值。正则表达式中要对?进行转义处理.


   Powered by Jute Powerful Forum® Version Jute 1.5.6 Ent
Copyright © 2002-2021 Cjsdn Team. All Righits Reserved. 闽ICP备05005120号-1
客服电话 18559299278    客服信箱 714923@qq.com    客服QQ 714923