Regular Expressions 101

Library entries

U.S. Telephone Numbers (No 800 or 900#)

Vote

1

Regular Expression
pcre

/
(?!000)(?!900)(?!976)(?!800)(?!855)(?!866)(?!877)(?!888)^([0-9]( |-)?)?(\(?[0-9]{3}\)?|[0-9]{3})( |-)?([0-9]{3}( |-)?[0-9]{4}|[a-zA-Z0-9]{7})$
/
m

Description

Loading markdown...
Submitted by hammraido - 5 years ago