Regular Expressions 101

Community Patterns

Community Library Entry

0

Regular Expression
Created·2019-08-31 06:31
Flavor·PCRE (Legacy)

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

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