Solved

parse the url to extract a string

Posted on 2009-07-07
2
195 Views
Last Modified: 2012-05-07
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
Comment
Question by:manivineet
2 Comments
 
LVL 15

Expert Comment

by:jinal
ID: 24800416
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
 
LVL 15

Accepted Solution

by:
David L. Hansen earned 500 total points
ID: 24803797
0

Featured Post

What Security Threats Are You Missing?

Enhance your security with threat intelligence from the web. Get trending threat insights on hackers, exploits, and suspicious IP addresses delivered to your inbox with our free Cyber Daily.

Join & Write a Comment

It’s quite interesting for me as I worked with Excel using vb.net for some time. Here are some topics which I know want to share with others whom this might help. First of all if you are working with Excel then you need to Download the Following …
It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
In this tutorial you'll learn about bandwidth monitoring with flows and packet sniffing with our network monitoring solution PRTG Network Monitor (https://www.paessler.com/prtg). If you're interested in additional methods for monitoring bandwidt…
This tutorial demonstrates a quick way of adding group price to multiple Magento products.

747 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

12 Experts available now in Live!

Get 1:1 Help Now