Regular Expressions 101

Community Patterns

0

分组

ECMAScript (JavaScript)
显示分组
Submitted by Jason - 2 years ago

UK Postcode Checker

22

Regular Expression
PCRE (PHP <7.3)

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

Description

Loading markdown...
Submitted by MaffooBristol - 9 years ago