I wanted to remove all the tags in HTML file. For that I used re module of python. For example, consider the line Hello World!.I want to retain
Hello World!
Parse the HTML using BeautifulSoup, then only retrieve the text.