title: Xpath query 'like' substitution
body: <p>Okay, so I've got some example xml that looks like this:</p>
  
  <pre><code>&lt;Node name="details"&gt;
     &lt;Node name="1130482269"&gt;
        &lt;Val name="type"&gt;&lt;u&gt;2&lt;/u&gt;&lt;/Val&gt;
        &lt;Val name="owner"&gt;&lt;n/&gt;&lt;/Val&gt;
        &lt;Val name="account_number"&gt;&lt;u&gt;99-71-39&lt;/u&gt;&lt;/Val&gt;
     &lt;/Node&gt;
     &lt;Node name="570722270"&gt;
        &lt;Val name="type"&gt;&lt;u&gt;2&lt;/u&gt;&lt;/Val&gt;
        &lt;Val name="owner"&gt;&lt;n/&gt;&lt;/Val&gt;
        &lt;Val name="account_number"&gt;&lt;u&gt;99 71 40&lt;/u&gt;&lt;/Val&gt;
     &lt;/Node&gt;
     &lt;Node name="1845243341"&gt;
        &lt;Val name="type"&gt;&lt;u&gt;2&lt;/u&gt;&lt;/Val&gt;
        &lt;Val name="owner"&gt;&lt;n/&gt;&lt;/Val&gt;
        &lt;Val name="account_number"&gt;&lt;u&gt;9971-41&lt;/u&gt;&lt;/Val&gt;
     &lt;/Node&gt;
  &lt;/Node&gt;
  </code></pre>
  
  <p>I'm trying to do a search based on account_number. But there are so many different formats that it could be in. Some have spaces, some have dashes, some have a mixture etc. If I was able to do a search removing spaces and dashes, I should be able to get any account number.</p>
  
  <p>With accountnumber being the search query, the ultimate goal is to get the second level node name number by doing a search in XPATH doing this:</p>
  
  <pre><code>doc = libxml2.parseDoc(xml)
  ctxt = doc.xpathNewContext()
  res = ctxt.xpathEval("/Node/Node[Val[@name='account_number']/*='" + str(accountnumber) + "']/@name")
  </code></pre>
  
  <p>Is there a way to use XPATH search, to remove all dashes and spaces, and leave only numbers?</p>
  
  <p>Thanks</p>