SagaciousDev PHP-Dev wrote:
This should do the trick:
preg_match('#(.*)#is', $content, $matches);
TA - That has got it ;)
That is tidier than what I had ended up with ...
#([^\']*?)<\/body>#
from a 'tutorial'
--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wi
: Sat, 25 Aug 2012 23:10:08 +0200
> From: krebs@gmail.com
> To: php-general@lists.php.net
> Subject: Re: [PHP] A quick ereg translation
>
> Am 25.08.2012 23:06, schrieb Lester Caine:
> > ereg('(.*)', $phpinfo, $regs);
> >
> > Pulls the body of
Am 25.08.2012 23:06, schrieb Lester Caine:
ereg('(.*)', $phpinfo, $regs);
Pulls the body of phpinfo() to use with a tidy header of other system
information, but I'm struggling to get a pcre alternative. Anybody
already cracked this one?
usually it's just fine to wrap the pattern into delimite
ereg('(.*)', $phpinfo, $regs);
Pulls the body of phpinfo() to use with a tidy header of other system
information, but I'm struggling to get a pcre alternative. Anybody already
cracked this one?
--
Lester Caine - G8HFL
-
Contact - http://lsces.co.uk/wiki/?page=conta
4 matches
Mail list logo