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. (Last updated on: November 16, 2018).
Unfortunately, activation email could not send to your email. Please try again.
Syncfusion Feedback

MaskEditTextBox and regular expressions?

Thread ID:





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

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 11:46 AM UTC

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.

Please sign in to access our forum

This page will automatically be redirected to the sign-in page in 10 seconds.

Warning Icon 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.Close Icon