[prev in list] [next in list] [prev in thread] [next in thread]
List: php-general
Subject: Re: [PHP] A quick ereg translation
From: Lester Caine <lester () lsces ! co ! uk>
Date: 2012-08-25 22:54:02
Message-ID: 5039578A.1070903 () lsces ! co ! uk
[Download RAW message or body]
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
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic