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 2
Title Test Details UK Tax Code 2018
Expression
^(NT|SD2|S?(0T|D[01]|BR|K[1-9][0-9]{0,5}|[1-9][0-9]{0,5}[LMNT]))$
Description
UK tax codes can be one of the following fixed formats: 0T, BR, D0, D1 and NT. Or, they can be a number following by one of the following letters LMNT, or a K followed by a number. All of the above can also be prefixed by a letter S (to indicate Scottish) except for the NT code. Scottish regime also has a D02 code.
Matches
BR | SBR | 1150L | S1150M | K950 | SK950 | D02
Non-Matches
SNT | 1150X | K0
Author Rating: Not yet rated. Adrian Parker
Title Test Details UK Tax Code 2019
Expression
^(NT|SD2|[SC]?(0T|D[01]|BR|K[1-9][0-9]{0,5}|[1-9][0-9]{0,5}[LMNT]))$
Description
UK Tax Code 2019, includes Scottish and Welsh Prefix
Matches
1185l | S1185l | K1000 | SK1000 | D1 | SD2 | W1234L
Non-Matches
1185X | S1185K | C1185L | D2
Author Rating: Not yet rated. Adrian Parker
   Displaying page 1 of 1 pages; Items 1 to 2

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