Mask Phone Number

Standardization Definition

Mask Phone Number
Description

The Mask Phone Number standardization definition replaces every alphanumeric character except the last four alphanumeric characters of the base number with the * character.

Examples Input Output
04 77 79 55 00 ** ****5500
0033 01 60 62 11 11 **** ** ****1111
04 33 44 55 66, L'Auxiliaire ** ****5566
03 85 82 49 40 Poste 456 ** ****4940 ***
Remarks

This definition is designed to handle single phone numbers in a valid format for the country of the locale. Invalid input may not be masked. There may be some format changes such as parenthesis removal and token separation that occurs prior to masking. Additionally, punctuation, symbols, and spaces defined by the following Unicode general categories are removed from the base number:

  • Punctuation (P)
  • Symbol (S)
  • Spaces (Z)

Additional information that is not part of the actual phone number is removed.