preg_match-plz advice me

Discussion in 'PHP' started by vetrivel, Jul 29, 2009.

  1. #1
    Hi ,
    preg_match("/^(.*?)\r?\n\r?\n(.*)/s", $input, $match)

    What this preg_match wil do?
    Please advice me.
     
    vetrivel, Jul 29, 2009 IP
  2. EricBruggema

    EricBruggema Well-Known Member

    Messages:
    1,740
    Likes Received:
    28
    Best Answers:
    13
    Trophy Points:
    175
    #2
    It looks like that you will check the text for returns on some sort..

    But where its used? i have no idea?
     
    EricBruggema, Jul 30, 2009 IP
  3. ptalent

    ptalent Peon

    Messages:
    26
    Likes Received:
    2
    Best Answers:
    0
    Trophy Points:
    0
    #3
    It would appear to remove line breaks and carriage returns, twice.
     
    ptalent, Jul 30, 2009 IP
  4. vetrivel

    vetrivel Peon

    Messages:
    147
    Likes Received:
    1
    Best Answers:
    0
    Trophy Points:
    0
    #4
    Yes,Just now only i found that it is used to remove the line break.
    thanks friends
    and is there any good site to learn basic to learn this patterns.
    I am bit week in this topic and also is there any quiz or competition kind of stuff to learn things.
    I think that will help me a lot .
     
    vetrivel, Jul 30, 2009 IP