Apply Mask Function
The apply mask function allows you to match a pattern in a string; that is, each character in a mask is tested against the corresponding character in the input string.
The following table describes the effect of a character in a mask string:
Mask Character | Meaning | Description |
---|---|---|
0 | required digit | Any digit. |
9 | optional digit | Any digit. |
# | optional digit | Any digit; also matches the + and - characters. |
L | required letter | Any letter. |
? | optional letter | Any letter. |
& | required character | Any non-control* character. |
C | optional character | Any non-control* character. |
A | required alphanumeric | Any letter or digit. |
a | optional alphanumeric | Any letter or digit. |
< | shift down | Flags mask to ensure that all letters that follow are lowercase, if matched by a mask character. This does not apply to literals. |
> | shift up | Flags mask to ensure that all letters that follow are uppercase, if matched by a mask character. This does not apply to literals. |
| | cancel shift | Cancels any shift up or shift down effect. All letters that follow may be either upper or lowercase. |
\ | escape | Escapes a mask character, turning it into a literal. Tip: You can use this feature on the following characters only: 0, 9, #, L, ?, &, C, A, a, <, >, |, or \ |
Other | required literals | The corresponding character in the input string must exactly match the character. |
* Control characters include all non-printing and formatting characters, such as line feeds and carriage returns.