Regular Expressions 101

Library entries

City and POstcode

Vote

1

Regular Expression
pcre

/
[^a-z0-9]+\D\S\b (?>(?:[A-Za-z]\d ?\d[A-Za-z]{2})|(?:[A-Za-z][A-Za-z\d]\d ?\d[A-Za-z]{2})|(?:[A-Za-z]{2}\d{2} ?\d[A-Za-z]{2})|(?:[A-Za-z]\d[A-Za-z] ?\d[A-Za-z]{2})|(?:[A-Za-z]{2}\d[A-Za-z] ?\d[A-Za-z]{2}))
/
g

Description

Loading markdown...
Submitted by Michael Ramirez - 6 years ago