sp046_postcode_patterns
On This Page:
This table contains all the defined part postcode matching regular expressions.
Â
Table Definition
Field | Type | Default | Nullable |
---|---|---|---|
pattern_no | number(2) | Â | |
description | varchar2(30) | Â | |
pattern | varchar2(200) | Â | |
display_order | number(2) | Â | |
field_id | varchar2(100) | Â |
Keys
unique (description)Â
primary key (pattern_no)Â
foreign key (field_id) references sp900_language_translation (field_id)
Primary Key Referenced From
Column Descriptions
Field | Description |
---|---|
pattern_no | unique identifier for the part postcode pattern |
description (Depreciated) | text used to describe the pattern in the same site dialogue |
pattern | regular expression to define a partial postcode e.g.([a-zA-Z]{1,2}[0-9])|([a-zA-Z]{1,2}[1-9][0-9]?) |
display_order | the order in which the gantt client displays the postcode pattern options in the same site dialogue. |
field_id | key to language translation for description |
Â
Â
Â
Pre-loaded Data
Four default patterns have been preloaded – two for the UK and two for the US:Â
Display Name | Pattern |
---|---|
UKDistrict | ([a-zA-Z]{1,2}[0-9] )|([a-zA-Z]{1,2}[1-9][0-9]? ) |
UKSector | ([a-zA-Z]{1,2}[0-9] [1-9])|([a-zA-Z]{1,2}[1-9][0-9]? [1-9]) |
US Zip | [0-9]{5,5} |
US Zip + 2 | [0-9]{7,7} |
The explanation for these patterns is as follows:
Display Name | Meaning of Pattern |
---|---|
UKDistrict |
|
UKSector | As above, but followed by a single digit (1 to 9) (e.g. "M26 1", "SK7 4"). |
US Zip | A number in the range 00000 to 99999. |
US Zip + 2 | A number in the range 0000000 to 9999999. |