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?
These are the possibilities, any other is invalid (i.e.: 00-A0-00):
- 00-00-AA
- AA-00-00
- 00-AA-00
At the moment, I only have this working:
([A-Z]){2}-([0-9]){2}-([0-9]){2}