ngx-mask icon indicating copy to clipboard operation
ngx-mask copied to clipboard

How to achieve "***-***-1234" in masking pattern ?

Open Oddadmix opened this issue 8 years ago • 7 comments

Oddadmix avatar Aug 03 '18 17:08 Oddadmix

@Oddadmix Hi , what you mean when use * ?

NepipenkoIgor avatar Aug 06 '18 08:08 NepipenkoIgor

@NepipenkoIgor * as a string not regex.

What is the masking pattern that I can use ?

Oddadmix avatar Aug 07 '18 13:08 Oddadmix

Did you mean * as a letter? If you yes, then try this mask="SSS-SSS-000".

pryimakalex avatar Aug 27 '18 14:08 pryimakalex

I think he meant example: Bank card number **** **** **** 2345 Instead of displaying the full number

ojemuyiwa avatar Sep 06 '18 14:09 ojemuyiwa

Perfect. Thanks @Alexandr98 & @ojemuyiwa I will try it but I think it should work.

Oddadmix avatar Sep 19 '18 14:09 Oddadmix

@Oddadmix Hi, I am also looking to mask a Credit card number, what mask did you use?

chr1soscl avatar Mar 10 '19 16:03 chr1soscl

@chr1soscl I used two different patterns one with --000 for the masked and for the unmased I used 000-000-000.

Hope that helps.

Oddadmix avatar Mar 19 '19 13:03 Oddadmix