“How to use the MASK function?”
This is used to mask(ie replace the given string by X) using startIndex and endIndex.
MASK(str,startIndex,endIndex,returnString)
Str → It holds the string which we want to mask.
We can give any of the hardcoded or dynamic values
startIndex → It holds the start index from where we want to start the mask
endIndex → It holds the end index from where we want to end the mask
MASK(str,startIndex,endIndex)
Example →
MASK(“12345678”,‘2’,‘7’)
CloneString : “12345678”
maskedString:”1xxxxxx8”