- 內容來源:http://www.ayton.id.au/gary/it/Delphi/D_Valid1.htm
- # = any digit; ? = any letter; & = any letter, converted to uppercase; @ = any character;
- ! = any character converted to uppercase; ; = next character to be used literally;
- [abc] = optional sequence of characters abc
- { } = grouping operator
eg. {Red, Green, Blue}
eg. {Red,Gr[ay,een],B{l{ack,ue},rown},White,Yellow} - * = repeat the following character any number of times:
eg. *5{#} = specify 5 numbers in a row
eg. *! = any number or any character with all letters converted to uppercase
eg. &*? = letters with 1st letter capitalised
examples:
沒有留言:
張貼留言