title: what is the way to strip something from text() using xpath?
body: <p>i am using an xpath in python  to parse a table from an html file. i am using this xpath :</p>
  
  <pre><code>//td//text()
  </code></pre>
  
  <p>This give me output as two strings:</p>
  
  <pre><code>['australia', '$3333.99']
  </code></pre>
  
  <p>output i want:</p>
  
  <pre><code>['australia', '3333.99']
  </code></pre>
  
  <p>but i want $ sign to be stripped of how can i do that in general using xpath? i have tried <code>substring-after</code> but it does not works.</p>
  
  <p>this is how i tried :</p>
  
  <pre><code>//td//text()[substring-after(.,'$')]
  </code></pre>
  
  <p>but i got this output:</p>
  
  <pre><code>['$3333.99']
  </code></pre>
  
  <p><code>Australia</code> was missing from the result</p>