Regular Expressions 101

Community Patterns

Community Library Entry

1

Regular Expression
ECMAScript (JavaScript)

/
\D*\(?(\d{3})?\)?\D*(\d{4})\D*(\d{4})
/

Description

Un pequeño regex para validar si el telefono pertenece a El Salvador

Submitted by nayosx - 9 years ago