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

Please support RegExLib Sponsors

Sponsors

Expressions by User

Change page:   |    Displaying page 2 of 2 pages; Items 21 to 28
Title Test Details UK Airport codes
Expression
EMA|QCY|SQZ|ORM|NQT|WTN|CBG|QFO|BEQ|LKZ|LTN|KNF|MHZ|NWI|CLF|QUY|SEN|STN|BEQ|BQH|LHR|NHT|LCY|MME|NCL|BWF|BLK|CAX|LPL|MAN|BBP|BEX|BZZ|LGW|SOU|FAB|OXF|ESH|QLA|LYX|KRH|ODH|RCS|QUC|BBS|GLO|EXT|FFD|BOH|LYE|NQY|LEQ|ISC|UPV|BRS|YEO|CVT|BHX|DSA|HUY|LBA|HRT|BFS|BHD|LDY|ENK|ABZ|OBN|BEB|BRR|CAL|COL|CSA|NRL|INV|SCS|DND|LSI|EOI|EDI|FIE|FOA|ILY|FSS|NDY|ADX|LMO|OUK|PSV|PPW|PIK|GLA|KOI|PSL|SYY|SKL|SOY|LWK|TRE|WRY|WHS|WIC|HAW|CEG|VLY|SWS|CWL|DGX|ACI|GCI|IOM|JER
Description
just a big list of all the allowable UK airport short codes (including Jersey etc)
Matches
EMA | NCL
Non-Matches
AAA | 123
Author Rating: Not yet rated. PJWhitfield
Title Test Details UK Driving Licence Number
Expression
^[A-Z9]{5}[0-9]([05][1-9]|[16][0-2])(0[1-9]|[12][0-9]|3[01])[0-9][A-Z9][0-9][A-Z0-9]([0-9]{2}?)$
Description
The Driving Licence Number consists of letter and numbers mainly taken from the holders personal information, consisting of First 5 chars of surname 1st digit of year of birth Month of birth day of birth 2nd digit of year of birth initials (2) a digit (usually 9) 2 check characters 2 digit serial number
Matches
SMITH610225PJ9WE01
Non-Matches
SMITH613225PJ9WE01
Author Rating: Not yet rated. PJWhitfield
Title Test Details CAS Registry Number
Expression
^[1-9][0-9]{1,6}\-[0-9]{2}\-[0-9]
Description
Other examples of this show there being upto 6 digits at the start however according to the official website, it should be 7 https://www.cas.org/content/chemical-substances/faqs
Matches
506-64-9 | 1234567-21-1
Non-Matches
506-64-19 | 12345678-21-1
Author Rating: Not yet rated. PJWhitfield
Title Test Details Sheet Paper sizes
Expression
^A([0-9]|10)$
Description
Sizes of paper from A0-A10
Matches
A0 | A6 | A10
Non-Matches
A-1 | B1 | A11
Author Rating: Not yet rated. PJWhitfield
Title Test Details Odd Numbers
Expression
^([1-9]+)?[13579]$
Description
Any number possible but must be Odd
Matches
1 | 101 | 7468274629
Non-Matches
2 | 102 | 74583837430
Author Rating: Not yet rated. PJWhitfield
Title Test Details Even Numbers
Expression
^([1-9]+)?[02468]$
Description
Any number possible as long as its even.
Matches
2 | 64 | 4343253298
Non-Matches
3 | 65 | 5345643531
Author Rating: Not yet rated. PJWhitfield
Title Test Details Prime Numbers < 1000
Expression
^([2357]|1[1379]|2[39]|[58][39]|4[137]|[36][17]|7[139]|97|[134]49|1([09][1379]|13|27|3[179]|5[17]|6[37]|7[39]|81)|2(11|2[379]|[36][39]|41|[57][17]|8[13]|93)|3(07|1[137]|3[17]|47|[578][39]|67|97)|4([013479]9|[02369]1|[346]3|[568]7)|5([0269]3|[247]1|[069]9|[4578]7)|6([03469]1|[14578]3|[0147]7|[15]9)|7([056]1|[347]3|[0136]9|[2589]7)|8([128]1|[2568]3|[2578]7|[0235]9)|9([1479]1|[58]3|[034679]7|[12]9))$
Description
Not fully tested but this behemoth of an expression should do Prime Numbers below 1000
Matches
1 | 3 | 971
Non-Matches
2 | 54 | 998
Author Rating: The rating for this expression. PJWhitfield
Title Test Details UK Short Dialing codes
Expression
^(02[03489]|01(1[3-8]|[2-9]1)$
Description
The main dialing codes for the major areas of the UK eg 0191 Tyneside/Sunderland/Durham 0161 Manchester 020 London
Matches
0191 | 0121 | 020
Non-Matches
0291 | 0154 | 030
Author Rating: Not yet rated. PJWhitfield
Change page:   |    Displaying page 2 of 2 pages; Items 21 to 28

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