Instr From URL

abbaddon223

Registered User.
Local time
Today, 10:25
Joined
Mar 13, 2010
Messages
162
Hi,

I'm trying to get a token ID from a URL to help me navigate round a website. The URL is below

https://THEDOMAIN?route=common/home&token=de2430e6afb8c35629af67c4363f15b2

What I need to do is get the token ID after the = sign, then use add this to another URL to navigate to. I'm Okay with getting the variable added to another URL, but don't know how to get the tocken to start with.

The variable for the instance of IE is: dim ie as object

Thanks for any assistance!!
 
If you just require the string value that comes after the = sign try this:

Code:
Dim tokenStr as String
 
tokenStr = Right(ie, Len(ie) - inStr(ie, "="))

where ie is your string varaible that holds the URL

David
 

Users who are viewing this thread

Back
Top Bottom