Simple Regular Expression Help

Discussion in 'PHP' started by fabregas2014, Jan 17, 2009.

  1. #1
    Hi i need to extract a link from <a href="http://blabla.com/blabal.html">blabla</a>

    I want to extract only the highlighted part only the domain name..


    regards.,
     
    fabregas2014, Jan 17, 2009 IP
  2. Jeremy Morgan

    Jeremy Morgan Peon

    Messages:
    322
    Likes Received:
    9
    Best Answers:
    0
    Trophy Points:
    0
    #2
    try this regex string:

    (?i)[\"'\b](http:.+?)[\"'\b]
    Code (markup):
     
    Jeremy Morgan, Jan 17, 2009 IP
  3. siothach

    siothach Active Member

    Messages:
    656
    Likes Received:
    6
    Best Answers:
    0
    Trophy Points:
    60
    #3
    exactly 100%
     
    siothach, Jan 17, 2009 IP