Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations bkrike on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

ASP string manipulation - keep the middle portion only 1

Status
Not open for further replies.

artguy

Technical User
Feb 2, 2001
117
US
I need to find a function that would allow me to take the string from request.servervariables("URL") and keep just he part between the first and last slashes. e.g. " would keep "/folder1/folder2/" only)

I was trying to use the InStr() and Mid() but that didn't quite work.

Is there a function or server variable I've been overlooking or something?

bob
 
instrrev!!!! That's exactly what I was looking for. I thought there had to be a way to find that out!!!

Thank you very much for your time!
 
I've been going through a bunch of junk in web sites for a couple hours in search of a function like that. Apparently, I wasn't searching properly in Google. Then it dawned on me just to ask someone here. Sure enough, in less than 5 minutes, I had a response. I LOVE this place! Now I also love instrrev.

bob
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top