Reg Expression Help Please

Discussion in 'PHP' started by LGRComp, Feb 21, 2006.

  1. #1
    LGRComp, Feb 21, 2006 IP
  2. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #2
    BUMP...no one have the reg expression for this?
     
    LGRComp, Feb 22, 2006 IP
  3. Lordo

    Lordo Well-Known Member

    Messages:
    2,082
    Likes Received:
    58
    Best Answers:
    0
    Trophy Points:
    190
    #3
    I saw many examples for this! Wait let me google.

    Back.
    Use this at google:
    url php regular expression

    and you will find many :)
     
    Lordo, Feb 22, 2006 IP
  4. blackbug

    blackbug Peon

    Messages:
    1,002
    Likes Received:
    89
    Best Answers:
    0
    Trophy Points:
    0
    #4
    blackbug, Feb 22, 2006 IP
  5. LGRComp

    LGRComp Well-Known Member

    Messages:
    516
    Likes Received:
    27
    Best Answers:
    0
    Trophy Points:
    195
    #5
    Thanks for answering.

    I found a solution over at: http://regexlib.com

    The regular expression that appears to work so far is:
    (http:[\/][\/]|www.)([a-z]|[A-Z]|[0-9]|[\/.]|[~])*
     
    LGRComp, Feb 22, 2006 IP