I need to extract the string which are starting with the tag <span class="style530"> and ending with </span> tag.
I used sed command but didn't get desired result. Below is sample code:
<strong>
-
<span class="style530">
AA -
This
is my
First
Heading</span></strong><br>
<span class="style530">
<strong>
*Some
text,*
<strong>
*text*</strong>,
*text*
<strong>
*text*</strong>:
<br>
<span class="style530">
<strong>
- This
is my
Second Heading</strong></span><br>
<span class="style530">
<strong>
*Some
text,*
<strong>
*text*</strong>,
*Here
is some
text.*
<strong>*text*</strong>:
*Here is
some
text*.<br>
<br>
<strong>
-
<span class="style530">
- This is
my Third
Heading</span></strong><br>
Output should be like:
AA - This is my First Heading
- This is my Second Heading
- This is my Third Heading
Thanks!
<span class="style530">tags than just the headings you note and your html is invalid or incomplete