title: Picking out dates from string via regex
body: <p>I'm trying to use <code>preg_match</code> to pick out two dates from a string (I can't guarantee the string will always be the same, but it will always contain two British dates).  An example:</p>
  
  <pre><code>$row['status'] = "Client updated: renewal date changed from 31/01/2015 to 21/02/2015";
  </code></pre>
  
  <p>The regular expression I'm using worked in an online Regex tester, but I keep getting PHP errors when using it with <code>preg_match</code>.</p>
  
  <p>The initial error: <code>Delimiter must not be alphanumeric or backslash</code></p>
  
  <p>When I try to change it I get errors like: <code>Unknown modifier '\'</code></p>
  
  <p>I'm not great with regex, so any help will be apperciated.</p>
  
  <pre><code>$matches = array();
  $pattern= '\d{2}/\d{2}/\d{4}';
  preg_match($pattern, $row['status'], $matches);
  </code></pre>