Input text formats

#

#<maxlength>

#<minlength, maxlength>

# — used to represent a single character of a specific type. # may be one of the following character types:

9: valid input character set includes '0', '1', ..., '9'

Z: valid input character set includes 'A', 'B', ..., 'Z'

z: valid input character set includes 'a', 'b', ..., 'z'

A: valid input character set includes all characters in Z and z type

C: valid input character set includes all characters in Z and 9 type

c: valid input character set includes all characters in z and 9 type

X: valid input character set includes all characters in Z, z and 9 type

?: valid input character set includes any characters

Examples

999999

Description — 6 numeric characters

Valid input examples

123456

888888

Invalid input examples

ABCDEF

wrong character type

1234567

too long

12345

too short

 

ZZZ999?

Description — 7 characters, first three characters are alphabetic letters, next three characters are numeric, last character is any character.

Valid input examples

BAT001%

BOX123a

Invalid input examples

BAT12b3

sixth character must be a numeric

Bat123a

second and third letters must be upper case alphabetic characters

BAT12345

too long

 

#<maxlength> — used to represent a variable length text value that has no minimum length but may have a maximum length.

  • If maxlength is 0, there is no limitation on the length of the input value.

  • If maxlength is greater than 0, the length of the input value length must be less than or equal to maxlength.

  • The maxlength may not be less than 0.

Examples

A<6>

Description — a string that may contain 6 or less alphabetic characters.

Valid input examples

A

ABCDEF

Invalid input examples

ABC123

last three characters must be alphabetic characters

ABCDEFG

too long

 

?<0>

Description – any text value.

#<minlength, maxlength> — used to represent a fixed or variable length input value that may have a minimum and maximum length.

  • If minlength is 0, the input string may be empty.

  • If minlength is greater than 0, the input value length must greater than or equal to minlength.

  • The minlength may not be less than 0.

  • If minlength is equal to maxlength, the input value must have the specified number of characters.

Examples

X<2,10>

Description — an input value that contains 2 to 10, upper or lower case alphabetic or numeric characters.

Valid input examples

Batch0001

1234abcABC

A1

Invalid input examples

Batch-001 The ‘-‘ character is not a valid ‘X’ character

A

too short

1234abcdABCD

too long

AB Inc

space character is not a valid ‘X’ character

 

?<3,0>

Description – a string that contains 3 or more characters of any type

Valid input examples

ABC

+%=

ABC Company

jsmith@ABC.com

Invalid input examples

A1 too short

A<4,4>

Description — a string of exactly 4 alphabetic characters. The same format as AAAA.

9<0,3>

Description — a string of 3 or less numeric characters. String may be empty.

A<3,2>

Description — invalid input format, maxlength must be greater or equal to minlength if maxlength is greater than 0.

See also:

Input formats