Regular Expressions 101

Library entries

UK Postcode

Vote

0

Regular Expression
javascript

/
^([a-zA-Z]{1,2}\d{1,2})\s*?(\d[a-zA-Z]{2})$|^([a-zA-Z]{1,2}\d{1,2})$
/
i

Description

Loading markdown...
Submitted by Calvin Willman - 6 years ago