Regular Expressions 101

Community Patterns

Community Library Entry

2

Regular Expression
ECMAScript (JavaScript)

/
(\+\d{1,4}( \d{1,4}){0,2})
/
gs

Description

ISD Codes for Phones

Matches the basic format for ISD Codes.

Submitted by Arvind Singh Rawat - a year ago