title: Regular expressions and Selenium WebDriver xpath
body: <p>How can I fix this code to work?</p>
  
  <pre><code> public void check(WebDriver driver) {
      driver.findElement(By.xpath("//a[matches(@href,'/staff/transcript/\\d{5}//.pdf')]")).click();
  }
  </code></pre>
  
  <p>I must find a link where 5-digit indentifier varies.</p>