title: How to match trailing text in xpath?
body: <pre><code>&lt;a href="xxxx"&gt;&lt;i class="xxxx"&gt;&lt;/i&gt;PDF&lt;/a&gt;
  </code></pre>
  
  <p>Suppose that I have some HTML code like the above. I want to find <code>a</code> by matching the word <code>PDF</code>. <code>text()</code> does not work in this case. Could anybody show me what is the correct way to match trailing text like <code>PDF</code> in <code>a</code>? Thanks.</p>