Such a specific validation can be done by defining a "regular
expression" pattern -- but DW MX built-in "Validate Form" behaviour
regretfully doesn´t provide an "apply regular expression"
option.
You might want to give some advanced 3rd party form
validation extensions a try, some of them let you apply your own
pattern (sometimes called "mask").