Page tree
Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 3 Current »

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]*

Where to use it?

  • specifying a field used to enter a credit card number or a person`s ID number with a specific format
  • No labels