Regular Expressions 101

Library entries

Canadian Phone Number Validator

Vote

0

Regular Expression
pcre

/
^(\(\+[0-9]{2}\))?([0-9]{3}-?)?([0-9]{3})\-?([0-9]{4})(\/[0-9]{4})?$
/
gm

Description

Loading markdown...
Submitted by anonymous - 2 years ago