Re: PHP: Eregi multi-line question
| From: | John W. Holmes | Date: | Thu, 25 Mar 2004 22:28:01 +0000 |
| Subject: | Re: PHP: Eregi multi-line question | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-181517@lists.php.net to get a copy of this message | ||
From: "PHPDiscuss - PHP Newsgroups and mailing lists" <Jeremy@eldepot.com>
> if (eregi ('<tr><td valign = "top"><span class =
> "gray">' . '[.+]'
> '</span></td></tr></table>', $line, $cont))
[.+] is going to match a literal period or plus sign and only one of them.
You either want just .+ to match one or more of any character or (.+) if you
want to capture the match.
---John Holmes...