|
||
Format guidelines are defined in form of a " format of string " . It is to differentaite between sign and placeholders (for sign). Placeholders can happen again in three different stampings:
| X | Letters |
|---|---|
| # | Datas |
| ? | Any signs |
Nevertheless, it can not only be declared what must be entered, but also how many signs must be entered. But either a firm number of placeholders can be indicated or (with one;"*" ) any number permitted. Following table shows the valid quantity designators by the example of the placeholders of letters:
| X | Exactly one letter |
|---|---|
| XX | Exactly two letters |
| ... | Exactly ... letters |
| X* | Arbitrarily many letters |
The syntax the format of string prescribes, that a placeholder always together with a quantity designator within a pair of square brackets "[]" in this order stand. Should several place holders be used in a format String, so they must stand in several pairs of square brackets.
Signs stand always beyond the square brackets.
| Format String | möglicher Wert |
|---|---|
[##]-[##]-[####] | 28-11-2005 |
abc+[X]-ef | abc+w-ef |
XYZ[X*] | XYZasdnbaDFERTfdöjbfjb |
[X*], [##]. [?*] [####] | Monday, 24th June, 2020 |
The following informations are syntactical wrong and so no format of strin