WordPress.org

Support

Support » Plugins and Hacks » [Plugin: Fast Secure Contact Form] regex for phone numbers

[Plugin: Fast Secure Contact Form] regex for phone numbers

  • Was wondering if anyone has figured out a way to implement an input mask for a telephone number field, I need to be able to accept with and without dashes and periods would be nice.
    So all these would be valid
    987-654-3210, 9876543210, or 987.654.3210

    I am currently using this,
    /\d{3}-\d{3}-\d{4}/

    but that only allows with dashes

    Thanks!

    http://wordpress.org/extend/plugins/si-contact-form/

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘[Plugin: Fast Secure Contact Form] regex for phone numbers’ is closed to new replies.