Re: A quick ereg translation
| From: | Lester Caine | Date: | Sat, 25 Aug 2012 22:54:02 +0000 |
| Subject: | Re: A quick ereg translation | ||
| References: | 1 2 3 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-318853@lists.php.net to get a copy of this message | ||
SagaciousDev PHP-Dev wrote:
This should do the trick: preg_match('#<body>(.*)</body>#is', $content, $matches);TA - That has got it ;) That is tidier than what I had ended up with ... #<body>([^\']*?)<\/body># from a 'tutorial' -- Lester Caine - G8HFL ----------------------------- Contact - http://lsces.co.uk/wiki/?page=contact L.S.Caine Electronic Services - http://lsces.co.uk EnquirySolve - http://enquirysolve.com/ Model Engineers Digital Workshop - http://medw.co.uk Rainbow Digital Media - http://rainbowdigitalmedia.co.uk