I'm looking a regular expression which must extract text between HTML tag of different types.
For ex:
<span>Span 1</span>
- O/p: Span 1
<div onclick="callMe()">Span 2</div>
- O/p: Span 2
<a href="#">HyperText</a>
- O/p: HyperText
I found this particular piece <([A-Z][A-Z0-9]*)\b[^>]*>(.*?)</\1>
from here But this one is not working.