title: How can I match Portuguese license plates in a single regular expression?
body: <p>I was building a regex to validate Portuguese license plates however, the old ones come in a different format, and I would like to know if it is possible to validate all of the possibilities with just one regex?</p>
  
  <p>These are the possibilities, any other is invalid (i.e.: 00-A0-00):</p>
  
  <ul>
  <li>00-00-AA</li>
  <li>AA-00-00</li>
  <li>00-AA-00</li>
  </ul>
  
  <p>At the moment, I only have this working:</p>
  
  <blockquote>
    <p><code>([A-Z]){2}-([0-9]){2}-([0-9]){2}</code></p>
  </blockquote>