From: Sean Russell Date: 2002-03-25T02:37:47+09:00 Subject: Re: extracting multi-line tags? Tobias Reif wrote: >> attributes in ' are AFAIK forbidden. They've to be >> in ". > > I would think it's the same as in XML: > value='foo"bar' > or > value="foo'bar" Yah, HTML is a dialect of SGML, and you can use either quotes or apostrophes. Also, please keep in mind that you have to be careful about parsing XML and HTML using REs. Tobi knows this, but a lot of people are bitten by the fact that regular expressions can't count tags, so the following fragment will screw up your processing:

I'm in a paragraph

Whoa... another paragraph

blah

If you're in control of the source and you know that you'll never embed tags of the same name, you should be OK. --- SER