News for hackers. Stuff that matters.
Re:Stackoverflow, HTML by Regex, topmost answer by jauco on Monday July 05, 2010 @11:42AM (#1488435)
For one thing: <br> is valid html, and this too:

    <!DOCTYPE html>
    <html>
    <head>
       <title>I AM YOUR DOCUMENT TITLE REPLACE ME</title>
    </head>
    <body>
       <div>
    <br id="<bl>">
       </div>
    </body>
    </html>
Re:Stackoverflow, HTML by Regex, topmost answer by albertzeyer on Monday July 05, 2010 @12:40PM (#1488562)
All kind of ways you could write the br-tag are regular.
Re:Stackoverflow, HTML by Regex, topmost answer by jauco on Monday July 05, 2010 @01:49PM (#1488699)
No, because as the example shows I can put regular html in the id tag. Once you do nesting, it's not regular anymore.
Re:Stackoverflow, HTML by Regex, topmost answer by albertzeyer on Monday July 05, 2010 @03:20PM (#1488886)
You cannot nest the quotes. I.e. this is invalid:

    <br id="<br id="<br>">">
I.e. it doesn't matter what is inside the quotes.