Not entirely clear on what you want. If you want to extract text from HTML try
<$Html='
<td class="sample text">
<a href="foo.html">sample text</a>
'>
<fetch "http://localhost/index.html" $Html>
<urlinfo text>
<$Text=$ret>
If you're looking to extract something from a snippet you might use:
<rex ">><a =[^>]+>\P=!</a>+\F</a>" $Html>
<$Text=$ret>