I have tried all the StackOverflow solutions for similar questions, and could`t find anything.
I have this snippet of code and I need to extract the text between html tags, everything between > and < .
word = "div class="name">
Text_I_Want_To_Extract
</div>"
m = re.search('>(.+)<', word)
print (m)
I have tried various regex expressions but I failed. I always get empty result. I am guessing it is because I am extracting everything between > and < symbols.
Did anyone had this kind of problems with Python 3 ?