Re: Regex Lookbehind help
| From: | Alex Hogan | Date: | Tue, 26 Oct 2004 21:25:00 +0000 |
| Subject: | Re: Regex Lookbehind help | ||
| References: | 1 2 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-200386@lists.php.net to get a copy of this message | ||
> Check the documentation for preg_match()...it can't be used that way. It returns
> false or the number of matches, but not the matching text itself. To get the
> matches you have to supply the third parameter (matches). Plus you'll probably
> want to use preg_match_all() unless you only want to get the first match.
I caught that after I reread the manual.
> Also, I don't believe readfile() is what you want. It looks like
> file_get_contents() is more in line with what you are trying to do.
That's got it.
Thanks...
alex hogan