New to Telerik UI for Xamarin? Download free 30-day trial

Mask Tokens

When the MaskType of the RadMaskedInput control is set to Text, you can utilize the available Mask Tokens to restrict the user input. Below you can find a list of the available tokens and their purpose:

Token Corresponding Regex Usage
0 "[0-9]" a single digit
9 "[0-9]{1}" a single digit(required)
L "[a-zA-Z]" a single letter
? "[a-zA-Z]{1}" a single letter(required)
& "\S" all symbols without space
C "." all symbols
A "[0-9a-zA-Z]" all without special symbols and space
a "[0-9a-zA-Z ]" all without special symbols

Mask Tokens Example

<telerikInput:RadMaskedInput x:Name="maskedInput"
                             WatermarkText="Watermark"
                             Mask="(CC) 00"
                             MaskType="Text"/>

See Also

In this article