regex for html attributes
| From: | peyton maddox | Date: | Sat, 07 Oct 2000 14:43:34 +0000 |
| Subject: | regex for html attributes | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-19039@lists.php.net to get a copy of this message | ||
I would like to be able to use eregi_replace() to change the value of an html attribute. Specifically, I want to alter the value of background="whatever.jpg". I am trying to do this on plain old html files so I cant just put a variable in place of "whatever.jpg". Anyway, does anyone know of a regular expression that would allow me to do that? Ideally it would recognize quoted and unquoted attributes. Thanks in advance.