Skip to content
jdubs edited this page Oct 23, 2016 · 1 revision

Overview

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}

Parameters

( options ) Includes all optional properties applied to all validators

Example

[[Phone]]
spec['Phone'].phone();

Clone this wiki locally