Good way to learn Reg Exp

Discussion in 'PHP' started by MMJ, Sep 24, 2007.

  1. #1
    What is a good way?

    How did you learn?
     
    MMJ, Sep 24, 2007 IP
  2. m0nkeymafia

    m0nkeymafia Well-Known Member

    Messages:
    399
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    125
    #2
    A good place to start is with simple and useful regexes.
    Decide what you want to do then set about learning how.

    Firstly look in google for the spec of regex and how it works, then look for solutions to your specific problem. Pull apart each part of the solution and reference it against the spec of regex to see what its doing.

    Then i'd try make one myself, if i couldnt get it to work id repeat the first step for assistance
     
    m0nkeymafia, Sep 24, 2007 IP
  3. nico_swd

    nico_swd Prominent Member

    Messages:
    4,153
    Likes Received:
    344
    Best Answers:
    18
    Trophy Points:
    375
    #3
    nico_swd, Sep 24, 2007 IP
  4. LongHaul

    LongHaul Peon

    Messages:
    670
    Likes Received:
    13
    Best Answers:
    0
    Trophy Points:
    0
    #4
    I just think of something I want done, go on Google to find if anyone has explained something similar, then adapt it to my purpose, then figure out WHY it works (if it does).

    It can do a remarkable amount of stuff; try to think of harder and harder stuff to do, and try to see if you can make it work.

    Good luck!
     
    LongHaul, Sep 24, 2007 IP
  5. MMJ

    MMJ Guest

    Messages:
    460
    Likes Received:
    12
    Best Answers:
    0
    Trophy Points:
    0
    #5
    MMJ, Sep 24, 2007 IP
  6. soulscratch

    soulscratch Well-Known Member

    Messages:
    964
    Likes Received:
    45
    Best Answers:
    0
    Trophy Points:
    155
    #6
    regexpal.com
     
    soulscratch, Sep 24, 2007 IP
  7. tamilsoft

    tamilsoft Banned

    Messages:
    1,155
    Likes Received:
    78
    Best Answers:
    0
    Trophy Points:
    0
    #7
    tamilsoft, Sep 26, 2007 IP