Regular Expressions 101

Community Patterns

ESIC number format regex

0

Regular Expression
PCRE (PHP <7.3)

/
^(\d{2})[-–\s]?(\d{2})[-–\s]?(\d{1,6})[-–\s]?(\d{3})[-–\s]?(\d{4})$
/
gm

Description

It captures the ESIC number explained which format is explained here https://www.quora.com/How-is-the-format-of-the-ESIC-code.

Submitted by anonymous - 5 years ago