Re: Regexp for xhtml compliant matching

From: Date: Wed, 03 Dec 2003 16:56:09 +0000
Subject: Re: Regexp for xhtml compliant matching
References: 1 2 3  Groups: php.pear.dev 
Request: Send a blank email to pear-dev+get-24097@lists.php.net to get a copy of this message
From: "Paul M Jones" <pmjones@ciaweb.net> > > Is it legal HTML (or XHTML) to have an HTML tag within another HTML > > tag? Not to start an XML discussion... > > Unless this source is inaccurate, it appears that <html> is not a valid > child of the <body> tag. > > http://www.zvon.org/xxl/xhtmlReference/Output/ Hmm! could have sworn I came across it somewhere! I know that embedded documents are allowed in the latest xhtml version(s?). I'll have to see what the exact syntax for it is. Maybe I'm jumping the gun and trying to implement something that isn't implemented yet... But still, my question for regexing nested tags still is open... because I'd like to be able to parse anyway... as I said, I've not done too much with regular expressions. Thanks, Klaus

« previous php.pear.dev (#24097) next »