You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm trying to solve this using a library, and I need to validate various Document Numbers (Doc. Nums.). These numbers can contain numbers, characters, and hyphens (-).
Hi,
I'm trying to solve this using a library, and I need to validate various Document Numbers (Doc. Nums.). These numbers can contain numbers, characters, and hyphens (-).
I'm currently using:
VMasker(document.getElementById("my-doc")).maskPattern('9999 9999-9');
However, this is not accepting characters like hyphens (-).
The challenge is that these Doc. Nums. originate from different countries, so there isn't a single, specific mask that will work for all of them.
I want to validate formats like these:
A9B9-C9D9-W9Y9-Z
Z9-9B99-9C99-E9
9C99D9-9Y99W9-99
and other variations.
Essentially, I only need to allow numbers, characters, and hyphens.
Could anyone assist me with this?
The text was updated successfully, but these errors were encountered: