I'm using snap in chat and we need to mask credit card numbers for agents inside salesforce. For this reason I am trying to use sensitive data rules.

Can any one please tell me how to use regular expression for sensitive data rules in salesforce for VISA, Master and Amex and discover.

I tried but it is not working at all in the snap in chat.

I am using the below Regexpression :

VISA - /^(?:4[0-9]{12}(?:[0-9]{3})?)$/

enter image description here

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Browse other questions tagged or ask your own question.