Displaying page
of
pages;
Items to
|
Title |
Test
Details
Accurate IP address verification
|
|
Expression |
^((0|1[0-9]{0,2}|2[0-9]{0,1}|2[0-4][0-9]|25[0-5]|[3-9][0-9]{0,1})\.){3}(0|1[0-9]{0,2}|2[0-9]{0,1}|2[0-4][0-9]|25[0-5]|[3-9][0-9]{0,1})$
|
|
Description |
Accurate IP address verification...
Each numeric part of an IP address must be between 0 and 255. All patterns I have seen on the net cover this range but they allow leading zeros. The valid cases are:
* 0
* 1, 10-19 and 100-199 aka 1[0-9]{0,2}
* 2 and 20-29 aka 2[0-9]{0,1}
* 200-249 aka 2[0-4][0-9]
* 250-255 aka 25[0-5]
* 3-9 and 30-99 aka [3-9][0-0]{0,1}
|
|
Matches |
10.0.0.0 | 195.167.1.119 | 255.255.255.255
|
|
Non-Matches |
010.0.0.0 | 195.167.01.119 | 256.20.55.23
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Australian postal code verification
|
|
Expression |
^(0[289][0-9]{2})|([1345689][0-9]{3})|(2[0-8][0-9]{2})|(290[0-9])|(291[0-4])|(7[0-4][0-9]{2})|(7[8-9][0-9]{2})$
|
|
Description |
Accurate Australian postal code verification.
Australia has 4-digit numeric postal codes with the following state based specific ranges.
ACT: 0200-0299 and 2600-2639.
NSW: 1000-1999, 2000-2599 and 2640-2914.
NT: 0900-0999 and 0800-0899.
QLD: 9000-9999 and 4000-4999.
SA: 5000-5999.
TAS: 7800-7999 and 7000-7499.
VIC: 8000-8999 and 3000-3999.
WA: 6800-6999 and 6000-6799.
|
|
Matches |
0200 | 7312 | 2415
|
|
Non-Matches |
0300 | 7612 | 2915
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Canadian postal code format verification
|
|
Expression |
^([ABCEGHJKLMNPRSTVXY]\d[ABCEGHJKLMNPRSTVWXYZ])\ {0,1}(\d[ABCEGHJKLMNPRSTVWXYZ]\d)$
|
|
Description |
Accurate Canadian postal code format verification.
The format of a Canadian postal code is LDL DLD where L are alpha characters and D are numeric digits. But there are some exceptions. The letters D, F, I, O, Q and U never appear in a postal code because of their visual similarity to 0, E, 1, 0, 0, and V respectively. In addition to avoiding the six "forbidden" letters W and Z also do not appear as the first letter of a postal code (at least not at present).
|
|
Matches |
M1R 4B0 | L0R 1B1 | L0R1B9
|
|
Non-Matches |
W1R 4B0 | L0R 1D1 | LOR1B9
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
German postal code verification
|
|
Expression |
^([0124678][0-9]{4})$
|
|
Description |
Accurate German postal code verification.
Germany has 5-digit numeric postal codes with the following state based specific ranges. BW: 7xxxx.
BY: 8xxxx.
BE: 10-14xxx.
BR: 15-19xxx.
HB: 28xxx.
HH: 20-22xxx.
HE: 6xxxx.
NI: 2xxxx.
MV: 18-19xxx.
NW: 4xxxx.
RP: 67-68xxx.
SL: 66xxx.
SN: 0xxxx.
ST: 0xxxx.
SH: 23-25xxx.
TH: 0xxxx.
|
|
Matches |
00125
|
|
Non-Matches |
30125
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
UK postal code format verification
|
|
Expression |
^(([A-Z]{1,2}[0-9][0-9A-Z]{0,1})\ ([0-9][A-Z]{2}))|(GIR\ 0AA)$
|
|
Description |
Accurate UK postal code format verification.
UK postal codes have two parts. The right part is formatted as DLL (L:letter D:digit) and the left part has six alternative formats: LD, LDL, LDD, LLD, LLDL and LLDD. There is only one exception to these formats: GIR 0AA.
|
|
Matches |
M2 5BQ | EC1A 1HQ | GIR 0AA
|
|
Non-Matches |
M2 BQ5 | E31A 1HQ | GIR0AA
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(SE){0,1}[0-9]{12}$
|
|
Description |
VAT Numbers format verification (Sweden) with support for optional member state definition.
|
|
Matches |
SE123456789012 | 123456789012
|
|
Non-Matches |
SE12345678901 | 123456789O12
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(BE){0,1}[0]{0,1}[0-9]{9}$
|
|
Description |
VAT Numbers format verification (Belgium) with support for optional member state definition.
|
|
Matches |
BE123456789 | 0123456789
|
|
Non-Matches |
BE12345678 | O123456789
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(CY){0,1}[0-9]{8}[A-Z]$
|
|
Description |
VAT Numbers format verification (Cyprus) with support for optional member state definition.
|
|
Matches |
CY12345678A | 12345678A
|
|
Non-Matches |
CY1234567A | 123456789
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(CZ){0,1}[0-9]{8,10}$
|
|
Description |
VAT Numbers format verification (Czech Republic) with support for optional member state definition.
|
|
Matches |
CZ12345678 | 1234567890
|
|
Non-Matches |
CZ1234567 | 12345678901
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(DK){0,1}([0-9]{2}\ ){3}[0-9]{2}$
|
|
Description |
VAT Numbers format verification (Denmark) with support for optional member state definition.
|
|
Matches |
DK11 22 33 44
|
|
Non-Matches |
DK11223344
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(ES){0,1}([0-9A-Z][0-9]{7}[A-Z])|([A-Z][0-9]{7}[0-9A-Z])$
|
|
Description |
VAT Numbers format verification (Spain) with support for optional member state definition.
|
|
Matches |
ES01234567A | A12345678
|
|
Non-Matches |
ES012345678 | AB2345678
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(FR){0,1}[0-9A-Z]{2}\ [0-9]{9}$
|
|
Description |
VAT Numbers format verification (France) with support for optional member state definition.
|
|
Matches |
FRAB 123456789 | L7 123456789
|
|
Non-Matches |
FRAB123456789 | L7 L23456789
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(GB){0,1}([1-9][0-9]{2}\ [0-9]{4}\ [0-9]{2})|([1-9][0-9]{2}\ [0-9]{4}\ [0-9]{2}\ [0-9]{3})|((GD|HA)[0-9]{3})$
|
|
Description |
VAT Numbers format verification (United Kingdom) with support for optional member state definition.
|
|
Matches |
GB123 1234 12 | GBGD123 | 123 1234 12 123
|
|
Non-Matches |
GB123123412 | GBGD1234 | 023 1234 12 123
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(IE){0,1}[0-9][0-9A-Z\+\*][0-9]{5}[A-Z]$
|
|
Description |
VAT Numbers format verification (Ireland) with support for optional member state definition.
|
|
Matches |
IE4*12345Z | 0012345K
|
|
Non-Matches |
IE4-12345Z | 00123456
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(LT){0,1}([0-9]{9}|[0-9]{12})$
|
|
Description |
VAT Numbers format verification (Lithuania) with support for optional member state definition.
|
|
Matches |
LT123456789 | 123456789012
|
|
Non-Matches |
LX123456789 | 123466789O12
|
|
Author |
Rating:
Vassilis Petroulias
|
|
Title |
Test
Details
Pattern Title
|
|
Expression |
^(NL){0,1}[0-9]{9}B[0-9]{2}$
|
|
Description |
VAT Numbers format verification (The Netherlands) with support for optional member state definition.
|
|
Matches |
NL123456789B12
|
|
Non-Matches |
NL123456789012
|
|
Author |
Rating:
Vassilis Petroulias
|
Displaying page
of
pages;
Items to