Regular Expression
| From: | [-^-!-%- | Date: | Wed, 02 Jan 2002 20:45:04 +0000 |
| Subject: | Regular Expression | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-79314@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?"
-+___________________________________+-