Regular expression help please

Collapse
X
 
  • Filter
  • Time
  • Show
Clear All
new posts

    Regular expression help please

    Hello im looking for a regular expression that will find anything between
    <body> and <div id=\"cateogry\"> please help

    #2
    $data = preg_replace('/<body>(.*?)<div id="cateogry">/is',$1,$data);

    Comment


      #3
      omw thanks its working so well could you please explain what the /is is doing i understand the rest

      Added after 49 minutes:

      nvm thanks alot i figured it out...
      Last edited by Guest; 29.09.10, 21:24.

      Comment

      Working...
      X