Regular Expressions 101

Community Library

Community Library Entry

1

Regular ExpressionOpen Workspace

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

Description
Created·2015-07-03 22:27
Type·Match
Flavor·JavaScript

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

Submitted by nayosx
Open Workspace