I have the HTML-pattern like
<p class='cls1'> Hello </p>
So I want to find the tag <p> (and I don't know what tag is around the text for now) by searching "Hello" using BS4.
It should be something like this:
full_string = soup.find(text=re.compile('Hello'))
full_string.get_parent_tag() # <p>
full_string.get_parent_class() # cls1