Regular Expressions 101

Library entries

Simple UK Post code

Vote

0

Regular Expression
pcre

/
^([Gg][Ii][Rr] 0[Aa]{2})|((?:(?:[A-Za-z][0-9]{1,2})|(?:(?:[A-Za-z][A-Ha-hJ-Yj-y][0-9]{1,2})|(?:(?:[A-Za-z][0-9][A-Za-z])|(?:[A-Za-z][A-Ha-hJ-Yj-y][0-9]?[A-Za-z])))) [0-9][A-Za-z]{2})$
/
gm

Description

Loading markdown...
Submitted by anonymous - a year ago