Go Premium for a chance to win a PS4. Enter to Win

x
  • Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 203
  • Last Modified:

parse the url to extract a string

i need a function which parses a url

e.g if the url is : http://testweb/p/user/default.aspx?key1=abcd&key2=asdf
or if its: http://www.testweb/p/user/default.aspx 

then I want to extract
1. "p/user/default.aspx"
2. "p/user/"
3. "default.aspx"
4. "abcd", "asdf"
0
manivineet
Asked:
manivineet
1 Solution
 
jinalCommented:
Hello ,
Please explain more about this.
Like which part if you want ...
for example if input is http://testweb/p/user/test1/test/default.aspx?key1=abcd&key2=asdf
what should be the output ?
 
0
 
David L. HansenProgrammer AnalystCommented:
0

Featured Post

How to Use the Help Bell

Need to boost the visibility of your question for solutions? Use the Experts Exchange Help Bell to confirm priority levels and contact subject-matter experts for question attention.  Check out this how-to article for more information.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now