in reply to Re^3: extracting link *and* tag content from "a href"
in thread extracting link *and* tag content from "a href"

That'll teach me to take the easy way out! Anyways, I'm glad we've agreed that it's broken =]. The second example *is* valid though, as far as I know. In the future if you'd just said "This is a learning exercise, please use one of the modules" I wouldn't have had any problems.
  • Comment on Re^4: extracting link *and* tag content from "a href"

Replies are listed 'Best First'.
Re^5: extracting link *and* tag content from "a href"
by iburrell (Chaplain) on Jul 20, 2004 at 16:49 UTC
    The second example is not valid HTML. The quotes are optional when the value contains only letters, numbers, period, and hyphens, </code>0-9A-Za-z.-</code> basically. Browsers and some parsers will work around broken markup, but many won't.