15 digit bank card numbers are formatted 0000-000000-00000[1].
If I show the last 4 digits, it becomes xxxx-xxxxxx-x0000 which looks slightly goofy.
Is there a correct way to format a masked 15 digit number?
(I expect we will not show more than the last 4 anyway, but if there is a standard, I want to know about it.)
*
for the mask and, as you say, the last 4 digits. For kicks, you could mask just the first 4 digits, which serve only to identify the type of card (visa, mastercard, amex, etc...) and amaze your friends by how easily you can guess their number. – Antennule