• Hi there,

    I have a need to put a multiple mask for a single phone field.

    example: (99) 9999-9999 or (99) 99999-9999

    it is possible?`

Viewing 1 replies (of 1 total)
  • You could try using the following reg ex:

    ^(\+\d{2,4})?\s?(\d{2,4}|\(\d{2,4}\))?\s?[\d\s.-]{3,15}$

    That should accept the following entries:

    9999 99999-99
    +99 999288432
    (883) 892739723
    +12 123 8293-76.238
    123 234 879347-837
     (99) 9999-9999 
    (99) 99999-9999

    https://regex101.com/r/9vj9Jv/1

Viewing 1 replies (of 1 total)
  • The topic ‘Multiple Mask Phone’ is closed to new replies.