Regular Expressions 101

Library entries

UK Postcode

Vote

4

Regular Expression
javascript

/
^([Gg][Ii][Rr][ ]0[Aa]{2})|([a-zA-Z]){1}([0-9][0-9]|[0-9]|[a-zA-Z][0-9][a-zA-Z]|[a-zA-Z][0-9][0-9]|[a-zA-Z][0-9]){1}(\s?)([0-9][a-zA-z][a-zA-z]){1}$
/
i

Description

Loading markdown...
Submitted by msyed - 6 years ago