RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Advanced Search

Keywords

Category

Minimum Rating

Results per Page

Search Results: 16 regular expressions found.

   Displaying page 1 of 1 pages; Items 1 to 16
Title Test Details Pattern Title
Expression
^([A-PR-UWYZ0-9][A-HK-Y0-9][AEHMNPRTVXY0-9]?[ABEHMNPRVWXY0-9]? {1,2}[0-9][ABD-HJLN-UW-Z]{2}|GIR 0AA)$
Description
Regular expression to match valid UK postcodes. In the UK postal system not all letters are used in all positions (the same with vehicle registration plates) and there are various rules to govern this. This regex takes into account those rules. Details of the rules: First half of postcode Valid formats [A-Z][A-Z][0-9][A-Z] [A-Z][A-Z][0-9][0-9] [A-Z][0-9][0-9] [A-Z][A-Z][0-9] [A-Z][A-Z][A-Z] [A-Z][0-9][A-Z] [A-Z][0-9] Exceptions Position - First. Contraint - QVX not used Position - Second. Contraint - IJZ not used except in GIR 0AA Position - Third. Constraint - AEHMNPRTVXY only used Position - Forth. Contraint - ABEHMNPRVWXY Second half of postcode Valid formats [0-9][A-Z][A-Z] Exceptions Position - Second and Third. Contraint - CIKMOV not used
Matches
DN3 6GB | SW42 4RG | GIR 0AA
Non-Matches
SEW4 5TY | AA2C 4FG | AA2 4CV
Author Rating: Not yet rated. Stuart Wade
Title Test Details Pattern Title
Expression
^(([a-h,A-H,j-n,J-N,p-z,P-Z,0-9]{9})([a-h,A-H,j-n,J-N,p,P,r-t,R-T,v-z,V-Z,0-9])([a-h,A-H,j-n,J-N,p-z,P-Z,0-9])(\d{6}))$
Description
Tests Vehicle Identification Numbers (VINs). This works for a Mitsubishi cars in the UK - but I have been unable to determine whether the format is for UK vehicles or applies only to this make. The requirements are that the first 9 characters and the 11th character are alpha-numeric excluding i, I, o or O. The 10th character is the chassis year, and is alpha-numeric excluding i, I, o, O, q, Q, u, and U. The final 6 characters are numeric. The string is 17 characters in length. Any refinements would be greatly appreciated!
Matches
abcDEFghp3t123456 | A1C3E5G6Y98123456 | A1C3E5G6FFF123456
Non-Matches
AIC3E5G6FFF123456 | A8C3E5G6FQF123456 | A8C3E5G6F9F12345H
Author Rating: Not yet rated. Edward Collier
Title Test Details Current UK Vehicle Registration
Expression
^([A-HK-PRSVWY][A-HJ-PR-Y])\s?([0][2-9]|[1-9][0-9])\s?[A-HJ-PR-Z]{3}$
Description
UK vehicle registration system currently in use (as defined by the DVLA and put into effect from September 2001, and therefore does not allow registrations prior to this date).
Matches
AB51DVL | AB 51 DVL
Non-Matches
AZ01DLQ | AZ 01 DLQ
Author Rating: The rating for this expression. Amos Hurd
Title Test Details Older UK Vehicle Registration
Expression
^([A-Z]{3}\s?(\d{3}|\d{2}|d{1})\s?[A-Z])|([A-Z]\s?(\d{3}|\d{2}|\d{1})\s?[A-Z]{3})$
Description
UK vehicle registration system prior to September 2001. Allows both older suffix and the later prefix formats in simple form, with optional spaces.
Matches
ABC123A | A 123 ABC
Non-Matches
AB123A | A 123 AB
Author Rating: Not yet rated. Amos Hurd
Title Test Details Combined UK Vehicle Registration
Expression
^([A-Z]{3}\s?(\d{3}|\d{2}|d{1})\s?[A-Z])|([A-Z]\s?(\d{3}|\d{2}|\d{1})\s?[A-Z]{3})|(([A-HK-PRSVWY][A-HJ-PR-Y])\s?([0][2-9]|[1-9][0-9])\s?[A-HJ-PR-Z]{3})$
Description
UK vehicle registration system. This is the obvious combination of two previous expressions posted here, to merge the older system with the current system.
Matches
ABC 123 A | A 123 ABC | AB 12 ABC
Non-Matches
AB 123 C | A 123 AB | AB 12 AB
Author Rating: The rating for this expression. Amos Hurd
Title Test Details Pattern Title
Expression
^([A-Z|a-z]{2}-\d{2}-[A-Z|a-z]{2}-\d{1,4})?([A-Z|a-z]{3}-\d{1,4})?$
Description
It validates Indian Vehicle Registration Number
Matches
mh-12-bj-1780 | mmx-1234
Non-Matches
mmm-123-1234 | mm-12345
Author Rating: Not yet rated. himraj love
Title Test Details Pattern Title
Expression
^([A-Z|a-z]{2}\s{1}\d{2}\s{1}[A-Z|a-z]{1,2}\s{1}\d{1,4})?([A-Z|a-z]{3}\s{1}\d{1,4})?$
Description
It validates Indian Vehicle Registration Number
Matches
mh 12 bj 1780 | mmx 1234
Non-Matches
mmm 123 1234 | mm 12 bj 345 | mm 12345
Author Rating: The rating for this expression. himraj love
Title Test Details Pattern Title
Expression
^([A-Z\d]{3})[A-Z]{2}\d{2}([A-Z\d]{1})([X\d]{1})([A-Z\d]{3})\d{5}$
Description
US vehicle VIN numbers for vehicles with GVW < 10k lbs
Matches
WDBCA45EXKA478654
Non-Matches
WDBCA45EXKA47865a
Author Rating: Not yet rated. Brian Bonini
Title Test Details New Style UK Number Plates
Expression
^[A-Za-z]{2}[ ]{0,1}[0-9]{2}[ ]{0,1}[a-zA-Z]{3}$
Description
This expression can be used to check against the format of a United Kingdom Vehicle Registration plate in the new style.
Matches
AB06CDE or AB 06 CDE or AB06 CDE or AB 06CDE
Non-Matches
Anything that's not in the above format
Author Rating: Not yet rated. Alex Richards
Title Test Details UK Vehicle Registration Numbers (VRM)
Expression
Pattern that matches all DVLA Vehicle Registration Marks (VRM). Allows for an optional single space between segments. Source: http://www.carreg.co.uk/number_plates/registration_numbers
Description
^(([A-Z]{1,2}[ ]?[0-9]{1,4})|([A-Z]{3}[ ]?[0-9]{1,3})|([0-9]{1,3}[ ]?[A-Z]{3})|([0-9]{1,4}[ ]?[A-Z]{1,2})|([A-Z]{3}[ ]?[0-9]{1,3}[ ]?[A-Z])|([A-Z][ ]?[0-9]{1,3}[ ]?[A-Z]{3})|([A-Z]{2}[ ]?[0-9]{2}[ ]?[A-Z]{3})|([A-Z]{3}[ ]?[0-9]{4}))$
Matches
A1|R296ACR|JON 123|SU 51 ANE
Non-Matches
BAZ
Author Rating: Not yet rated. John Bayly
Title Test Details UK Vehicle Registration Plate / Number Plate
Expression
([A-HJ-PR-Y]{2}([0][1-9]|[1-9][0-9])|[A-HJ-PR-Y]{1}([1-9]|[1-2][0-9]|30|31|33|40|44|55|50|60|66|70|77|80|88|90|99|111|121|123|222|321|333|444|555|666|777|888|999|100|200|300|400|500|600|700|800|900))[ ][A-HJ-PR-Z]{3}$
Description
UK Vehicle Registration Plate / Number Plate format as specified by the DVLA. Accepts both "Prefix" and "New" style. Allows only valid DVLA number combinations as not all are supported. Registration number must be exactly as is displayed on car, hence all letters must be in uppercase and a space seperating the two sets of characters.
Matches
AB12 RCY | CD07 TES | S33 GTT | Y999 FVB
Non-Matches
ab12 rcy | CD07 TIS | S34 GTT | Z999 FVB
Author Rating: Not yet rated. Stephen S
Title Test Details Vehicle Registration Series for India
Expression
^([A-Z]{2}\s?(\d{2})?(-)?([A-Z]{1}|\d{1})?([A-Z]{1}|\d{1}))$
Description
this is usefull for Series of Vehicle Number of Indian Transport
Matches
RJ21-3M
Non-Matches
RJ21 3M
Author Rating: The rating for this expression. Jugal Kishor Choudhary
Title Test Details Complete Vehicle Registration Number For Indian Transport Dept.
Expression
^([A-Z]{2}\s?(\d{2})?(-)?([A-Z]{1}|\d{1})?([A-Z]{1}|\d{1})?( )?(\d{4}))$
Description
Ex.- RJ21-CA 1232 PB08-PA 4354
Matches
RJ21-CA 1232
Non-Matches
RJ21-CA1232
Author Rating: Not yet rated. Jugal Kishor Choudhary
Title Test Details VIN - Vehicle Identification Number for USA
Expression
^[^iIoOqQ'-]{10,17}$
Description
Validates US VIN. It could be between 10 and 17 character in length and should never contain i, l, o, O, q, Q, ' or -.
Matches
12345awertasfggr
Non-Matches
12345qwertasfggr
Author Rating: Not yet rated. Igor Werner
Title Test Details UK Vehicle Registration (inc. Northern Ireland)
Expression
^([A-HJ-PR-Y]{2,2}[056][0-9]\s?[A-HJ-PR-Y]{3,3})$|^([A-HJ-NP-Y]{1,3}[0-9]{2,3}?\s[A-Z]{3,3})$|^([A-Z]{1,3}\s?[0-9]{1,4}([A-Z]{1,1})?)$|^([0-9]{4,4}[A-Z]{1,3})$|^([A-Z]{1,2}\s?[0-9]{1,4})$|^([A-Z]{2,3}\s?[0-9]{1,4})$|^([0-9]{1,4}\s?[A-Z]{2,3})$
Description
The regular expression above will validate a UK Vehicle Reg number according to the following criteria: Pre 1932 XX 9999 - 1 or 2 letters followed by 1 to 4 numbers 1932 - 1963 XXX 999 - 1 to 3 letters followed by 1 to 3 numbers 9999 XXX - 4 numbers followed by 1 to 3 letters 1962 - 1982 XXX 999X - 1 to 3 letters followed by 1 to 3 numbers followed by 1 letter 1983 - 2001 XXX999 XXX - 1 to 3 letters (excluding I, Q and Z) followed by 2 to 3 numbers followed by 3 letter 2001 to present XX99 XXX - 2 letters(excluding I, Q and Z) followed by 2 numbers (the first being 0, 5 or 6) followed by 3 letters Northern Ireland XXX 9999 - 2 or 3 letters followed by 1 to 4 numbers 9999 XXX - 1 to 4 numbers followed by 2 or 3 letters
Matches
GL55 ABB | A23 GMP | UFG 158
Non-Matches
GLB1 VVV | GL99 AAA | SSS 99999
Author Rating: Not yet rated. David Rose
Title Test Details Vehicle Registration Number: Nigeria
Expression
^([A-Z]{3,20}\s?[A-Z]{2}[0-9]{1,3}-([A-Z]{3}|[A-Z]{1}[0-9]{2}))|([A-Z]{1,20}\s[A-Z]{1,2}[0-9]{1,4}-[A-Z]{1,3})|([\d,\w,\s]{1,20}\s[A-Z]{3}-[0-9]{1,3})|([A-Z]{1,20}\s?[\d,\w,\s]{1,20})$
Description
Regular expression for vehicle registration number according to these formats: STATE PRECODENUMBER-LGA for public (commercial and private) (STATEXXX XX999- XXX), for customized: STATE ANYFORMAT (alphanumeric), and government/diplomatic (House of Assembly, Ministries, Commissions,etc) like LAGOS LA123-A03, OHA 67,..... Enjoy!
Matches
OSUN BL897 LES | POLICE SS1234-SPY | OHA 679 | DIPLOMATIC EDY-123
Non-Matches
OSUN BL859 LE | LHA-456 |
Author Rating: Not yet rated. Adeyeye Adesupo
   Displaying page 1 of 1 pages; Items 1 to 16

Copyright © 2001-2014, RegexAdvice.com | ASP.NET Tutorials