Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
PCRE (PHP <7.3)

/
((S|T)([\d]{2})([A-Z]{2})([\d]{4})([A-Z])|(\d{9})([A-Z]))
/
g

Description

Should match all valid UENs but doesn't check Entity Type is valid.

Based on: https://www.uen.gov.sg/ueninternet/faces/pages/admin/aboutUEN.jspx

Submitted by Harry Gordon - 4 years ago (Last modified 4 years ago)