How to print out html tags excluding the attributes

Rhodri James rhodri at kynesim.co.uk
Mon Jul 22 06:29:56 EDT 2019


On 21/07/2019 02:04, sum abiut wrote:
> I want to use regular expression to print out the HTML tags excluding the
> attributes.

That's a very good way of creating hard-to-read code and introducing 
subtle bugs and unexpected behaviours.  Try using an HTML parser like 
BeautifulSoup instead.

-- 
Rhodri James *-* Kynesim Ltd



More information about the Python-list mailing list