ngx-mask
ngx-mask copied to clipboard
What happens if we run out of 26 alphabets and 9 numbers ?
`public customPatterns = {
//Alphanumric with space
'A': { pattern: new RegExp('\[a-zA-Z0-9 \]')},
//Alphanumeric
'B': { pattern: new RegExp('\[a-zA-Z0-9\]')},
//Alphabets only
'C': { pattern: new RegExp('\[a-zA-Z\]')},
//Alphabets with space
'D': { pattern: new RegExp('\[a-zA-Z \]')},
//Numeric only
'E': { pattern: new RegExp(`^[0-9]*$`)},
//Numeric with space
'F': { pattern: new RegExp(`^[0-9 ]*$`)},
//Float
'G': { pattern: new RegExp(`[+-]?([0-9]*\[.\])?[0-9]+`)},
'HI': { pattern: new RegExp('\[a-zA-Z\]')},
};`
mask="A{5}" [patterns]="customPatterns"
As you can see above, I have 8 custom Patterns defined, but looks like it only works with single alphabet declaration. The last declration is "HI" which doesn't work, so I have 26 letters and 9 numbers, so a total of 35 different ways to make my custom masks ? What after that ?