Replace MASK with Regular expression validation

 - Change the calling convention.  Pass in a minimum parameter count
   instead of a "required" flag on each definition.
 - Remove the MASK: definition, replacing it with a regular expression.