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 Mike Lewis on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

getting value between two identifiers

Status
Not open for further replies.

tester321

Programmer
Mar 13, 2007
150
CA
hi i have a query string value like so: d=\salt^dfsas....

I'm only interested in the value that appears between the \ and the ^

in this case "salt"

Thanks for reading this BTW. How can one parse for this value between the two identifiers?

Thanks
 
Hi again, i think i need to be more exact, tell yous all the actual query string value:

d=\salt^_______^q95437413_9f0y_07354ht1_9e_p463297_661852\

Thanks again
 
figured it out, although i'm sure there is a more effecient way to do this:

Dim t,te,tem : tem = Request.QueryString("d")

''''\salt^_______^q95437413_9f0y_07354ht1_9e_p463297_661852\

te = Split(tem,"^")
t = Right(te(0),Len(te(0))-1)
 
You might also look into regular expressions (regex).

------------------------------------------------------------------------------------------------------------------------
"Men occasionally stumble over the truth, but most of them pick themselves up and hurry off as if nothing ever happened."
- Winston Churchill
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top