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

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 3
Title Test Details UK Passport number
Expression
^[0-9]{10}GBR[0-9]{7}[U,M,F]{1}[0-9]{9}$
Description
The first field consist of 10 numbers, then 3 characters (GBP as its for UK passports), 7 numbers, 1 character and 7 numbers. The final field is for the 2 numbers at the right-hand end of the <<<<< symbols.
Matches
7086493126GBR6510204M150224602 | 1234567890GBP1234567F123456712 | 6098475322GBR6911225F140517400
Non-Matches
7086493126USD6510204M150224602 | 1234567890GBP1234567A123456712 | 60984753GBR6911225F1405174
Author Rating: Not yet rated. Pradeep Dhiman
Title Test Details UK Driving Licence
Expression
^([A-Z]{2}[9]{3}|[A-Z]{3}[9]{2}|[A-Z]{4}[9]{1}|[A-Z]{5})[0-9]{6}([A-Z]{1}[9]{1}|[A-Z]{2})[A-Z0,9]{3}$
Description
These are identified from the driving license as follows: • 5 characters (made up of letters and 9's padded on right) • 6 numbers • 3 characters (made up of letters and 9's padded on right) • 2 characters (either 9's or 0's)
Matches
NON99604079T9900 | NOONE355144BA900 | NONE9701010RW900
Non-Matches
ABC12343434F9900 | NOONE355123ASDAS | NOONE9121234UOUOO
Author Rating: Not yet rated. Pradeep Dhiman
Title Test Details International Passport
Expression
^[A-Z0-9<]{9}[0-9]{1}[A-Z]{3}[0-9]{7}[A-Z]{1}[0-9]{7}[A-Z0-9<]{14}[0-9]{2}$
Description
• 9 characters made up of a combination of numbers and/or letters. Where less than 9 characters it will be padded out to the right with chevrons (<). • 1 number • 3 letters • 7 numbers • 1 letter • 7 numbers • An international passport will have up to 14 characters in this field (numbers and/or letters). If none exist or where less than 14 characters exist, the field will be padded out, but only to the right, with chevrons (<). You should input the data exactly as it is shown on the actual passport field, i.e. input all chevrons to the left of the characters and do not ignore or leave these as blank spaces. Where less than 14 characters, the field will be padded out to the right with chevrons (<), i.e. Z1234567<<<<< • 1 number • 1 number
Matches
1234567890ABC1234567A1234567<<<<<<<<<<<<<<12 | 0123456781USD5656564M0812120AS34560<<<<<<<36 | G0308084<<1ITY9999999Q0410056<<<<<<<<<<<<<<39
Non-Matches
ASDFER123AQWE!"%^<<<<<<<<<<<12 | QASASW3<<1WER3as12232<<AS | ABCDEF123AQQQ123456789A1<<<<<AS14
Author Rating: The rating for this expression. Pradeep Dhiman
   Displaying page 1 of 1 pages; Items 1 to 3

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