Closed ihsanktmr closed 2 years ago
Did you thind how to do it ??
@arochedy , read the documentation, understand how the mask works and you should be able to build what you want...
On @ihsanktmr code he used /\d/
for all inputs, but /\d/
will match only numbers.
I do not know IBAN numbers, but you can try something like this:
const ibanMask = [
/[a-zA-Z]/,
/[a-zA-Z]/,
/\d/,
/\d/,
' ',
/\w/,
/\w/,
/\w/,
/\w/,
' ',
/\d/,
/\d/,
/\d/,
/\d/,
' ',
/\d/,
/\d/,
/\d/,
/\d/,
' ',
/\d/,
/\d/,
/\d/,
/\d/,
' ',
/\d/,
/\d/,
/\d/,
/\d/,
];
I can't enter strings with this mask ->
I am trying to mask iban number for example -> GB29 NWBK 6016 1331 9268 19 Can you help me ? thanks