Please enable JavaScript to use regex101
/
^
r
e
g
e
x
[
\
-
_
]
?
1
0
1
$
/
i
Reg
ular
Ex
pressions
101
Upgrade to Pro
Enterprise
Regular Expression
/
[A-Z]{1,2}[0-9][0-9A-Z]?\s?[0-9][A-Z]{2}
/
gi
Input 1
New
Uxbridge Road, Southall UB1 3HH, United Kingdom Richmond TW9 1QJ, United Kingdom CF24 3DG SW6 1AA NW10 6RB W11 3SJ W11 3SJ NW3 6LU NW10 6RB EC1A 9JX WC2A #Order for 671500 27 Newman's Row London WC2A 2 West Smithfield London EC1A 9JX EC1A 9JX N1 6BS EC1A 9JX WC2H 0EB WC1X 8LT N1 0NY NW10 6RB BS98 1TL TV Licensing[44] BX1 1LT Lloyds Bank formerly known as Lloyds TSB Bank[45] – non-geographic address BX2 1LB Bank of Scotland (part of Lloyds Banking Group)[46] – non-geographic address BX3 2BB Barclays Bank[47] – non-geographic address BX4 7SB TSB Bank BX5 5AT VAT Central Unit of HM Revenue and Customs[48] (Roman numeral "VAT" = "5AT") – non-geographic address CF10 1BH Lloyds Banking Group (formerly Black Horse Finance) CF99 1NA National Assembly for Wales CV4 8UW University of Warwick CV35 0DB Aston Martin after their long line of iconic sports cars that bear the "DB" moniker DA1 1RT Dartford F.C. (nicknamed The Darts) DE99 3GG Egg Banking DE55 4SW Slimming World DH98 1BT
Substitution
Uxbridge Road, Southall UB1 3HH, United Kingdom Richmond TW9 1QJ, United Kingdom CF24 3DG SW6 1AA NW10 6RB W11 3SJ W11 3SJ NW3 6LU NW10 6RB EC1A 9JX WC2A #Order for 671500 27 Newman's Row London WC2A 2 West Smithfield London EC1A 9JX EC1A 9JX N1 6BS EC1A 9JX WC2H 0EB WC1X 8LT N1 0NY NW10 6RB BS98 1TL TV Licensing[44] BX1 1LT Lloyds Bank formerly known as Lloyds TSB Bank[45] – non-geographic address BX2 1LB Bank of Scotland (part of Lloyds Banking Group)[46] – non-geographic address BX3 2BB Barclays Bank[47] – non-geographic address BX4 7SB TSB Bank BX5 5AT VAT Central Unit of HM Revenue and Customs[48] (Roman numeral "VAT" = "5AT") – non-geographic address CF10 1BH Lloyds Banking Group (formerly Black Horse Finance) CF99 1NA National Assembly for Wales CV4 8UW University of Warwick CV35 0DB Aston Martin after their long line of iconic sports cars that bear the "DB" moniker DA1 1RT Dartford F.C. (nicknamed The Darts) DE99 3GG Egg Banking DE55 4SW Slimming World DH98 1BT