Regular Expression
| From: | John Monfort | Date: | Sun, 30 Dec 2001 12:49:22 +0000 |
| Subject: | Regular Expression | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-79115@lists.php.net to get a copy of this message | ||
Hello everyone!
I'm trying to get the text inside the <BODY> tag, using regular
expression.
$area = eregi('(<body)(.*)<">)',$str);
Where $str is the string containing
<body bgcolor="#999999" tex="#..." ...>
When I print $area, the string contains the entire content of $str. I
get something like:
<body ...>
<p>
.
.
.
</body>
</html>
__________John Monfort_________________
_+-----------------------------------+_
P E P I E D E S I G N S
www.pepiedesigns.com
"The world is waiting, are you ready?"
-+___________________________________+-