I need to parse some XML to pull out embedded template tags for further parsing. I can\'t seem to bend Python\'s regular expressions to do what I want, though.
In Engli
Never ever parse HTML or XML or SGML with regular expressions.
Always use tools like lxml, libxml2 or Beautiful - they will ever do a smarter and better job than your code .