Results 1 to 2 of 2

Thread: TRIM Url

  1. #1

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715

    TRIM Url

    lets say I have a URL in a string like "http://www.blabla.com/adf/adf/asdf/asdf/asdf/asdf.asp"

    how can I "trim" everything before the 3rd slash?

    Edit: I'm using ASP w/ vbscript
    NXSupport - Your one-stop source for computer help

  2. #2

    Thread Starter
    Frenzied Member
    Join Date
    Jun 2000
    Location
    East Providence, RI
    Posts
    1,715
    Figured it out:

    VB Code:
    1. dbErrFileSlash = Instr(1, dbErrFile, ".com") + 3                    'find character position after .com
    2.         dbErrFile = right ( dbErrFile, (len(dbErrfile) - dbErrFileSlash))   'cut everything before the first /
    NXSupport - Your one-stop source for computer help

Posting Permissions

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



Click Here to Expand Forum to Full Width