title: How to select something that has a wildcard / partial match with XPath
body: <p>How can I create an XPath expression that works like a regex would, so that it matches instances of <code>next</code>? Here's an example of what I want using regex syntax:</p>
  
  <pre><code>string = 'blah_blah next&amp;nbsp;'
  
  xpath="//a[contains(text(),'.*?next.*')]");
  </code></pre>
  
  <p>I'm new to XPath, and searching through tutorials didn't help me.</p>