Module: ValidatesPhoneNumber::Formats
- Included in:
- Validator
- Defined in:
- lib/validates_phone_number/formats.rb
Constant Summary collapse
- TEN_DIGITS =
/^\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/
- SEVEN_DIGITS =
/^(?:\(?([0-9]{3})\)?[-. ]?)?([0-9]{3})[-. ]?([0-9]{4})$/
- LEADING_1 =
/^(?:\+?1[-. ]?)?\(?([0-9]{3})\)?[-. ]?([0-9]{3})[-. ]?([0-9]{4})$/