Extract http:// from url

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • dromela
    New Member
    • Apr 2008
    • 1

    Extract http:// from url

    hello !!

    I want to extract a url from another url ... for example :

    ... /http://www.google.com/ .... but this don´t work with .../(.*)/.... because "//" matches to "/" and I extract this => http:/www.google.com and it´s wrong.

    Any Idea?? thanks !!
  • Ganon11
    Recognized Expert Specialist
    • Oct 2006
    • 3651

    #2
    Maybe you could match for "/http:\/\/(.*)/"?

    Comment

    • Xiaoyan
      New Member
      • Apr 2008
      • 6

      #3
      Originally posted by dromela
      hello !!

      I want to extract a url from another url ... for example :

      ... /http://www.google.com/ .... but this don´t work with .../(.*)/.... because "//" matches to "/" and I extract this => http:/www.google.com and it´s wrong.

      Any Idea?? thanks !!

      I think maybe you can use "#(.*)#" except "/" to match.

      Comment

      Working...