Re: Regular expresion problem
| From: | Ignacio Vazquez-Abrams | Date: | Sat, 25 Nov 2000 21:29:58 +0000 |
| Subject: | Re: Regular expresion problem | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-27183@lists.php.net to get a copy of this message | ||
On Sat, 25 Nov 2000, Oliver Ertl wrote:
> Hi,
>
> I have an HTML file like this in a string:
>
> -- begin --
> <font face="Helvetica">first line
> secend line</font>
> -- end --
>
> What I would like to have is the the text between the tow
> <font.*></font> tags.
>
> I have tried the following but it is not working.
> eregi ( "<font.*>(.*?)</font>", $regs)
>
> If the <font.*> and </font> is in one line it work's fine.
>
> Oliver
>
Try "<font[[:space:]](.|\n)*>(.|\n)*</font>"
--
Ignacio Vazquez-Abrams <ignacio@openservices.net>