Starting with SWAT 20.05 version, you can use regular expressions definitions to specify the format of a character field. The definition is added in the 'extendedFormat' attribute in the designer.
We support the following masks:
- static masks (ex: 99-9999999 or (999) 999-9999)
- dynamic masks (ex: aa-9{1,4} - the 9 digit can occur 1 to 4 times)
- Regex expressions (ex: [0-9]*)
Masking definitions:
- 9 - numeric
- a - alphabetical
- * - alphanumeric
Examples for the extendedFormat attribute on character fields to specify the format:
- extendedFormat: aa-9999
- extendedFormat: aa-9 {4}
- extendedFormat: regex:[0-9]*