Searching and printing a just certain words from a line of code
On the command line in linux I am trying to search some HTML code and print just a dynamic part of the code. For example this code:
The part that changes is
<tr class="patFuncEntry"><td align="left" class="patFuncMark"><input type="checkbox" name="renew0" id="renew0" value="i1061700" /></td><td align="left" class="patFuncTitle"><label for="renew0"><a href="/record=p1234567~S0"> the part I want to print </a></label>
and I just want to print "part I want to print" The rest of the code will stay the same.
p1234567~S0"> the part I want to print
I am trying to do this with grep but can figure out how.
Any help would be great.