title: regex: validate european date format with multiple separators
body: <p>I want to validate european date formats like "10.02.2012" or "10-02-2012". Therefore I created the following regex:</p>
  
  <pre><code>/\d[0-9]{2}(.|-)\d[0-9]{2}(.|-)\d[0-9]{4}/
  </code></pre>
  
  <p>Unfortunately I always get the message not valid, even when the date has the right format. </p>
  
  <p>When I replace the "(.|-)" with "." for validating only dates separated with a dot it works. So i guess the problem must be the "(.|-)"
  Any ideas?</p>