RE: [PHP] need help with preg_match
| From: | John W. Holmes | Date: | Sat, 08 Feb 2003 23:29:30 +0000 |
| Subject: | RE: [PHP] need help with preg_match | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-134908@lists.php.net to get a copy of this message | ||
> Thank You very much!
> It Really works the way I want it to. But i still have a slight
problem.
> The
> script cant read the data if it is on several rows. For example:
> <table>
> <font color=black>
> <tr>text</tr>
> </font>
> </table>
>
> Is there a way to fix this problem?
http://www.php.net/manual/en/pcre.pattern.modifiers.php
In particular, look at the 's' modifier. Also, if your matching (.*)
between your font elements, you will probably want to use the 'U'
modifier, also, if there can be more than one pattern on the page.
---John W. Holmes...
PHP Architect - A monthly magazine for PHP Professionals. Get your copy
today. http://www.phparch.com/