You can quickly create and modify display, edit, and validation patterns to format data input values (user input or bound data) by selecting predefined patterns from the Select Type list on the Display tab in the Patterns dialog box (Object palette > Patterns). For example, the Postal Code (United Kingdom) option provides the pattern A9A 9A9|AA9A 9A9, such that an input value of KB1C3R2 produces a formatted value of KB1C 3R2.
In the next example, a serial number requires input like this: three alphabetic characters, followed by four digits, followed by a single character of any type. A suitable text pattern would be as follows:
The following table below shows the results of converting some example input values (user input or bound data) into raw values using an edit pattern or data pattern.
See also 

Examples of text patterns