title: Selecting elements whose attribute begins with something in XPath
body: <p>As the title says, is it possible to select elements in XPath that only begin with a certain string, but perhaps do not end with the same?</p>
  
  <p>For example there are 3 anchor elements:</p>
  
  <pre><code>&lt;a href="buy.php/onething"&gt;&lt;/a&gt;&lt;a href="buy.php/twothing"&gt;&lt;/a&gt;&lt;a href="sell.php/anotherthing"&gt;&lt;/a&gt;
  </code></pre>
  
  <p>I only want to get anchor elements that begin with 'buy.php/'. I don't think the following will work, will it:</p>
  
  <pre><code>getByXPath("//a[@href='buy.php/']")
  </code></pre>
  
  <p>How can I do this?</p>