Using BeautifulSoup to search html for string,soup.body.findAll(text=re.compile('^Python$'))