I need to extract patterns from a line in a web page and these patterns sometimes show up twice in the same line so using grep with the pattern only grabs one.
Exaple is I need
<td width="30%" class="navtext" >Sample1</td><width="7%"> 20</td>
<td width="30%" class="navtext" >Sample2</td><td width="7%">18</td>
extracted from the bottom code line.
My final result wants to be
Sample1 20
Sample2 18
Outputed to a seperate file.
Is there a way of using grep or sed to do this from as perl script
<td width="7%"></td><td width="30%" class="navtext" >Sample1</td><td width="7%">20</td><td width="7%"></td><td width="30%" class="navtext" >Sample2</td><td width="7%">18</td></font>
Thanks
Exaple is I need
<td width="30%" class="navtext" >Sample1</td><width="7%"> 20</td>
<td width="30%" class="navtext" >Sample2</td><td width="7%">18</td>
extracted from the bottom code line.
My final result wants to be
Sample1 20
Sample2 18
Outputed to a seperate file.
Is there a way of using grep or sed to do this from as perl script
<td width="7%"></td><td width="30%" class="navtext" >Sample1</td><td width="7%">20</td><td width="7%"></td><td width="30%" class="navtext" >Sample2</td><td width="7%">18</td></font>
Thanks
Comment