regular expression basic

Discussion in 'PHP' started by googlehelper, Apr 1, 2009.

  1. #1
    first i want some one to give me a lesson on regular expression in general no links please

    second i wnt a regexp code for following
    • Validate a youtube url eg:- http://www.youtube.com/watch?v=<<<<VIDEO_ID>>>>
    • Validate a image url ending with jpeg jpg bmp png
    • Validate a name fiels containing A-Z 0-9 <space> - and _
     
    googlehelper, Apr 1, 2009 IP
  2. Barti1987

    Barti1987 Well-Known Member

    Messages:
    2,703
    Likes Received:
    115
    Best Answers:
    0
    Trophy Points:
    185
    #2
    You can find this website very helpful in finding the regex you need:

    http://regexlib.com/

    Peace,
     
    Barti1987, Apr 1, 2009 IP
  3. kusal

    kusal Peon

    Messages:
    91
    Likes Received:
    3
    Best Answers:
    0
    Trophy Points:
    0
    #3
    kusal, Apr 1, 2009 IP
  4. googlehelper

    googlehelper Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #4
    although i said no links you ppl gave me links k thats still fine

    now what about the solution to 2,3
     
    googlehelper, Apr 4, 2009 IP
  5. PoPSiCLe

    PoPSiCLe Illustrious Member

    Messages:
    4,623
    Likes Received:
    725
    Best Answers:
    152
    Trophy Points:
    470
    #5
    First, I suggest being a little bit more humble. We're not your servants. You ask questions, we try to help. That the help doesn't quite fulfill your demands, is to be expected. Forums like these are very dynamic, and the help you get, while often very good, will normally try to make you fend for yourself - we're not here to do the job for you, but we do provide helpful hint, links and suggestions as to how you can do it yourself.
     
    PoPSiCLe, Apr 4, 2009 IP
  6. googlehelper

    googlehelper Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #6
    firstly sorry if it was rude i an sorry but u without any reply(solution) talking all that.....

    any solution ppl
     
    googlehelper, Apr 4, 2009 IP
  7. googlehelper

    googlehelper Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #7
    googlehelper, Apr 5, 2009 IP
  8. googlehelper

    googlehelper Peon

    Messages:
    57
    Likes Received:
    0
    Best Answers:
    0
    Trophy Points:
    0
    #8
    any reply...................
     
    googlehelper, Apr 6, 2009 IP