Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
^([2-2]{1}|[6-7]{1})([0-9]{3})[-. ]?(\d{4})?$
/

Description

Is a simple regex for compare tel number of El Salvador (not use +503 or iquals)

Submitted by nayosx - 9 years ago