Regular Expressions 101

Sp⁠onsors

Community Library

Community Library Entry

0

Regular ExpressionOpen Workspace

/
^(([A-Z])*(\d+)([A-Z])*)(-|\/|&)*(([A-Z])*(\d+)([A-Z])*)*((\/)*(([A-Z])*(\d+)([A-Z])*))*
/
gm

Description
Created·2019-12-02 04:41
Type·Match
Flavor·PCRE (Legacy)

The regular expression checks for the street numbers or apartment numbers of addresses. It also assumes that the numbers can have a prefix or suffix. Unit/Apartment numbers are of the form Unit Number/Street Number e.g. 10/12.

Submitted by Anonymous
Open Workspace