Last updated
Was this helpful?
Last updated
Was this helpful?
expression: The string to mask.
num_chars: The number of characters to unmask.
uc_mask: Controls the mask character for upper case letters.
lc_mask: Controls the mask character for lower case letters.
num_mask: Controls the mask character for numbers.
Examples
By default, upper case letters are converted to X
, lower case letters are converted to x
, and numbers are converted to n
. You can override the characters used in the mask by supplying optional arguments. The second argument controls the mask character for upper case letters, the third argument for lower case letters, and the fourth argument for numbers.
Returns a masked version of a string with the first num_chars characters unmasked. By default, if you do not provide a value, the first four characters are shown.