Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Python

r"
^\d{4}\s?[A-Z]{2}$
"
gm

Description

This identifies whether a postcode (four numbers, two letters has been provided)

Submitted by anonymous - 2 years ago