title: php preg_match not giving a result?
body: <p>sorry, I'm not good at php, this might be a very obvious mistake. I'm trying to this:</p>
  
  <pre><code>  $datum = "Samstag, 26.10.2013";
    echo("&lt;p&gt;".$datum."&lt;/p&gt;");
  
    $regresult = preg_match("(.*)([0-9]{1,2}\.[0-9]{1,2}\.[0-9]{1,4})",$datum, $matches);
    echo("&lt;p&gt;Result: ".$regresult."&lt;/p&gt;");
    echo("&lt;p&gt;Error: ".preg_last_error()."&lt;/p&gt;");
    echo("&lt;p&gt;Match: ".$matches[2]."&lt;/p&gt;");
  </code></pre>
  
  <p>and the result is:</p>
  
  <pre><code>&lt;p&gt;Samstag, 26.10.2013&lt;/p&gt;&lt;p&gt;Result: &lt;/p&gt;&lt;p&gt;Error: 0&lt;/p&gt;&lt;p&gt;Match: &lt;/p&gt;
  </code></pre>
  
  <p>but in the documentation of preg_match it says:</p>
  
  <blockquote>
    <p>preg_match() returns 1 if the pattern matches given subject, 0 if it
    does not, or FALSE if an error occurred.</p>
  </blockquote>
  
  <p>anyone know what I'm doing wrong?</p>