We use cookies to give you the best experience on our website. If you continue to browse, then you agree to our privacy policy and cookie policy.
Unfortunately, activation email could not send to your email. Please try again.

MaskEditTextBox and regular expressions?

Thread ID:





116002 Mar 15,2014 12:29 AM Mar 17,2014 07:46 AM ASP.NET Web Forms (Classic) 1
Tags: MaskedEditTextBox
John Hodgkinson
Asked On March 15, 2014 12:29 AM

how can I create a mask for multiple expression. for example say I want to user to enter either a short zip code (5 digit) or a long zip code (zip +4)?

@Html.Syncfusion().MaskEditTextBoxFor(model => model.BusinessAddressZipCode, Model.BusinessAddressZipCode).Mask("99999")

@Html.Syncfusion().MaskEditTextBoxFor(model => model.BusinessAddressZipCode, Model.BusinessAddressZipCode).Mask("99999-9999")

I want to use a regular expression that would accept either formats, something like:


How can I do that?

Gurunathan A [Syncfusion]
Replied On March 17, 2014 07:46 AM

Hi John,

Thanks for contacting Syncfusion support.


We regret to let you know that currently we don’t have support to Mask Edit textbox with regular expression options. So we have added it to our feature request list and it can be tracked through our Features Management System:


You can communicate with us regarding the open features at any time using the “Contact” option.

Please let us know if you have any questions about this.


This post will be permanently deleted. Are you sure you want to continue?

Sorry, An error occured while processing your request. Please try again later.

You are using an outdated version of Internet Explorer that may not display all features of this and other websites. Upgrade to Internet Explorer 8 or newer for a better experience.