Help with simple regular expression
| From: | Aral Balkan | Date: | Mon, 25 Jun 2001 00:34:04 +0000 |
| Subject: | Help with simple regular expression | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-55065@lists.php.net to get a copy of this message | ||
Hi all,
I'm trying to match the body tag in an HTML file (eg. <body
bgcolor="ffffgg">) with the following regular expression and eregi:
<body.*>
Unfortunately it matches everything from the body tag onwards and doesn't
stop at the greater-than sign. It should be simple thing but I'm stumped! To
me the regex reads match string that begins with <body followed by zero or
more of anything and ending with a greater-than sign.
Any help would be greatly appreciated! :)
Aral
______________________________
(aral@kismia.com)
New Media Producer, Kismia, Inc.
(aral@american.edu)
Adj. Prof., American University
¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯¯