I'd like to use a python regular expression to extract the substring between two different characters, > and <.
Here are my example strings:
<h4 id="Foobar:">Foobar:</h4>
<h1 id="Monty">Python<a href="https://..."></a></h1>
My current regular expression is \>(.*)\<
and matches:
Foobar
Python<a href="https://..."></a>
My re matches the first example correctly but not the second one. I want it to return "Python". What am I missing?