Solved

parse the url to extract a string

Posted on 2009-07-07
2
196 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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

If you're writing a .NET application to connect to an Access .mdb database and use pre-existing queries that require parameters, you've come to the right place! Let's say the pre-existing query(qryCust) in Access takes a Date as a parameter and l…
Calculating holidays and working days is a function that is often needed yet it is not one found within the Framework. This article presents one approach to building a working-day calculator for use in .NET.
Learn how to create flexible layouts using relative units in CSS.  New relative units added in CSS3 include vw(viewports width), vh(viewports height), vmin(minimum of viewports height and width), and vmax (maximum of viewports height and width).
CodeTwo Sync for iCloud (http://www.codetwo.com/sync-for-icloud?sts=6554) automatically synchronizes your Outlook 2016, 2013, 2010 or 2007 folders with iCloud folders available via iCloud Control Panel. This lets you automatically sync them with…

911 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

20 Experts available now in Live!

Get 1:1 Help Now