Regular Expressions 101

Community Library

Your search did not match anything

Community Library Entry

-1

Regular ExpressionOpen Workspace

/
^\+?[1]?[2-9]{1}11$
/
gm

Description
Created·2016-09-29 15:27
Type·Match
Flavor·JavaScript

This expression can be used for identifying if a string (such as a dialed number using a cloud based telephony service) matches one of the known North American US N11 Service Numbers. It will match if the number is in e.164 format or not, and only matches when the string begins and ends with the desired values.

Submitted by Benjamin Dean
Open Workspace