title: selenium: Is it possible to use the regexp in selenium locators
body: <p>I want to get the xpath count of all the divs/links/.. that have text matching some regular expression. For example:</p>
  
  <pre><code>&lt;span&gt; day 2 night &lt;/span&gt;
  &lt;span&gt; day 4 night &lt;/span&gt;
  &lt;span&gt; day 17 night&lt;/span&gt;
  </code></pre>
  
  <p>I would like to be able to call:</p>
  
  <pre><code>sel.get_xpath_count('regexp:day \d night')
  </code></pre>
  
  <p>and have it return 2. (This is a simple example of course, I would like to use all kinds of regular expressions)</p>
  
  <p>Is this possible, and how to do it?</p>