Austin Ziegler
1/10/2006 3:18:00 PM
On 09/01/06, Eric Schwartz <emschwar@mail.ericschwartz.us> wrote:
> More like, "Just pray the HTML you are modifying doesn't happen to be
> completely valid, but not formed in exactly the way you are
> expecting." For instance, the following HTML snippet is completely
> valid, but screws up the regex:
>
> <p>a <img src="greaterthan.gif" alt=">" /> b</p>
Actually, that is *not* completely valid, at least not valid XHTML
(which is what I use these days). You have to do that as:
<p>a <img src="greaterthan.gif" alt=">" /> b</p>
But my regexp wasn't intended to be complete; there are full libraries
out there for that.
-austin
--
Austin Ziegler * halostatue@gmail.com
* Alternate: austin@halostatue.ca