#1
  1. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    köln, germany
    Posts
    51
    Rep Power
    12

    Parse $ for URL's


    Hello, I need to parse a string for URL's beginning with http:// and ending with a whitespace, but I can't get it to work ...

    This

    http:\/\/(.*)\s|$

    doesn't work when the URL is at the end of the string and it's the best I could come up with ...

    Any help will be appreciated!
    jwm
  2. #2
  3. No Profile Picture
    Contributing User
    Devshed Newbie (0 - 499 posts)

    Join Date
    Feb 2004
    Location
    köln, germany
    Posts
    51
    Rep Power
    12
    As so often, as soon as you post the question, something comes up. This seems to work:

    http:\/\/([^\s]+)

IMN logo majestic logo threadwatch logo seochat tools logo