in reply to Regex problem

Update: Jenda is correct in that I jumped the gun on this one. I presumed an XML parser would be able to handle this, but I have no proof. I will defer to Jenda's expertise in this matter. I apologize for making an irresponsible assertion.

Use an XML parser.

XML parsing vs Regular expressions

Replies are listed 'Best First'.
Re^2: Regex problem (XML)
by choroba (Cardinal) on Jun 10, 2010 at 23:29 UTC
Re^2: Regex problem (XML)
by Jenda (Abbot) on Jun 14, 2010 at 06:50 UTC

    Now I would be most interested in seeing how you would use a XML parser to modify a DTD. Especially considering the fact that DTD is not XML. Most interested.

    Sometimes shouting "use a XML parser" whenever you notice the "XML" keyword doesn't cut it.

    Jenda
    Enoch was right!
    Enjoy the last years of Rome.