Mask Partial String

Standardization Definition

Mask Partial String
Description

The Mask Partial String standardization definition replaces every alphanumeric character except the last four with the * character.

Examples Input Output
AD12 0001 2030 2003 5910 0100 ********************0100
CS7.3 260-0- 0-560- 10-0-1 6113 7.9 ******************1379
221-161-355 *****1355
IBAN: IT18U6764653993134928774224 ***************************4224
Remarks

Punctuation, symbols, and spaces defined by the following Unicode general categories are removed:

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

NOTE: Strings consisting of 4 alphanumeric characters or less are not masked.