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]*)[^>]*>(.*?)</1>
from here But this one is not working.
See Question&Answers more detail:
os 与恶龙缠斗过久,自身亦成为恶龙;凝视深渊过久,深渊将回以凝视…