Most efficient?

Results 1 to 2 of 2

Thread: Most efficient?

  1. #1
    Join Date
    Dec 1969

    Default Most efficient?

    I need the most efficient way to strip everything but the true URL out of this string:<BR><BR>&#060;a href=""&#062;<BR><BR>I am trying to write something like this:<BR><BR>hUrl = Request.Querystring("hUrl")<BR>Replace(Trim(hUrl, "&#060;a href="""h", "h"))<BR>Replace(Trim(hUrl, """&#062;", ""))<BR><BR>I am getting all sorts of errors.<BR><BR>I want to be able to do a<BR>Response.Redirect back to the Calling page.<BR><BR>I know I could always do like<BR>Response.Redirect(HTTP_Referer) or something like that but I want to learn to parse man!<BR>

  2. #2
    Join Date
    Dec 1969

    Default Why?

    Learn to parse something else... you have the answer.<BR><BR>Anyways, look for the = sign using InStr(), and read in all the chars with mid from 1 past the = sign (or 2 if the quotes are in there) to Len(theString) - 1 (or 2, depending on the = sign.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts