I\'m looking a regular expression which must extract text between HTML tag of different types.
For ex:
Span 1 - O/p:
Span 1
This should suit your needs:
<([a-zA-Z]+).*?>(.*?)\\1>
The first group contains the tag name, the second one the value inbetween.