Simple thing but it's driving me nuts

Discussion in 'PHP' started by bigrollerdave, Apr 24, 2007.

  1. #1
    I have a long text store in $body variable. What I'm trying to do is get part of the text and leave the rest alone. I'm using preg_match but I can't seem to get it right. This is what I have

    preg_match("^/9(.+?)=^ism",$body,$matches);
    PHP:
    It starts with the /9 and it should continue untill it shows an = sign. It doesn't work though any ideas?
     
    bigrollerdave, Apr 24, 2007 IP
  2. bigrollerdave

    bigrollerdave Well-Known Member

    Messages:
    2,112
    Likes Received:
    52
    Best Answers:
    0
    Trophy Points:
    140
    #2
    nevermind I figured it out =)
     
    bigrollerdave, Apr 25, 2007 IP