Extract parts of html using regex
- by Fred Yang
I have a simple requirement to extract text in html. Suppose the html is
<h1>hello</h1> ... <img moduleType="calendar" /> ...<h2>bye</h2>
I want to convert it into three parts
<h1>hello</h1>
<img moduleType="calendar" />
<h2>bye</h2>
The aim is to extract text in two categories, simple html and special tags with <img moduleType="Calender".