Customized Mask Rules

The MaskedTextBox enables you to define custom mask rules during its initialization.

To customize a mask rule, define it in the rules option. The component allows you to define mask rules as regular expressions or functions.

To escape any of the predefined rules, use the rules option.

Example
View Source
Edit In Stackblitz  
Change Theme:

In this article

Not finding the help you need?