Regular Expressions 101

Sponsors

Library entries

103
javascript

trim

trim string
Submitted by fp - 9 years ago

Phone Number

Vote

14

Regular Expression
javascript

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

Description

Loading markdown...
Submitted by Tlmader - 7 years ago