mark wrote:
preg_match_all("|(.*)|U",$content, $body, PREG_PATTERN_ORDER);
the example text im trying to grab is below - Anyone got any ideas, Ive
tried pattern modifying with /m but I cant implement it.
Please help
Thanks
Mark
you need pattern modifier s (PCRE_DOTALL)
this makes . match all
I know I have to use pattern modifiers, but thats what Im saying its spewing
errors when I try to implement it.
I have been trying to fix it, but Im just lost.
"Bahwi" <[EMAIL PROTECTED]> wrote in message
[EMAIL PROTECTED]">news:[EMAIL PROTECTED]...
> Over here will help:
> http://www.php.net/m
Over here will help:
http://www.php.net/manual/en/ref.pcre.php
http://www.php.net/manual/en/pcre.pattern.modifiers.php
(From the second page:
/m/ (PCRE_MULTILINE)
By default, PCRE treats the subject string as consisting of a single
"line" of characters (even if it actually contains several
Im trying to grab some info from a file, usual way (fopen,fread,flose then
regex), I need to get to separate bits of data, first one is a title works
fine because its the tag and it all on one line, but the second is
returning a null array, I think it may have something to do with the content
bein
4 matches
Mail list logo