phone
jdubs edited this page Oct 23, 2016
·
1 revision
Requires a valid US phone number be entered into spec control. Phone numbers may be delimited with - or . and area codes () are optional. Example of allowed phone number: (612)-555-5555 or 612.555.5555. Regular expression used for validation: ^\(\d{3}\) ?\d{3}(-|.)?\d{4}|^\d{3}(-|.)?\d{3}(-|.)?\d{4}
( options ) Includes all optional properties applied to all validators
[[Phone]]
spec['Phone'].phone();