Regular Expressions 101

Library entries

Thorough UK Postcode Validator with In/Out code capture groups

Vote

3

Regular Expression
python

"
([A-PR-UWYZ](?:[A-HK-Y][0-9](?:[0-9]|[ABEHMNPRV-Y])?|[0-9]([0-9]|[A-HJKPSTUW])?)) ?([0-9][ABD-HJLNP-UW-Z]{2})
"
gi

Description

Loading markdown...
Submitted by Chris G - 5 years ago