DekGenius.com
Home
(current)
Dictionary
BOOKS
LYRICS
CHORD
SCRIPT & CODE EXAMPLE
Karaoke language
Search
Go
SCRIPT & CODE EXAMPLE
CODE EXAMPLE FOR JAVASCRIPT
regex for not accepting zeros
/^(?!0{10})(?:(1-?)|(+1 ?))?(?(d{3})[)-.]?(d{3})[-.]?(d{4})$/
PREVIOUS
NEXT
Tagged:
#regex
#accepting
#zeros
ADD COMMENT
Topic
COMMENT
Name
5+7 =
Submit