Regular Expressions 101

Community Patterns

106

trim

ECMAScript (JavaScript)
trim string
Submitted by fp - 10 years ago

Valid Telephone Number

10

Regular Expression
ECMAScript (JavaScript)

/
(^(1?)(\s?)([\s]?)((\(\d{3}\))|(\d{3}))([\s]?)([\s-]?)(\d{3})([\s-]?)(\d{4})+$)
/
gmi

Description

Loading markdown...
Submitted by Adam Recvlohe - 8 years ago