I want to globally assign a REGULAR EXPRESSION
to a Kendo MaskedTextBox
using JavaScript...but cannot get Kendo to 'recognize' the pattern(s).
- Q: How do you use Regex in a Kendo MaskedTextBox?
...everything I have tried fails.
SAMPLE PATTERNS:
Some examples of things I might use include things like...
- Basic Text: ^[a-zA-Z0-9,.- ]*$
- Unformatted Serial Numbers: ^[a-zA-Z0-9- ]*$
I want to do "something" like...
$('#txtMeterNumber').kendoMaskedTextBox({
mask: "basicText",
rules: {
"basicText": /^[a-zA-Z0-9,.- ]*$/
}
});