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. Image for the cookie policy date

Complex RegEx do not work in SfMaskedEdit


is the complexity of RegEx masks for the SfMaskedEdit restricted in some way? I've noticed that I had problems with some expresions for e-mail or phone validation. I now wanted to create an input for datetime and wanted to use a RegEx mask that would already restrict the input to valid datetimes. The expression works in several online testtools i found, based on javascript and on .net, but using it in the SfMaskedEdit leads to some symbols being shown in the entry and the app crashing as soon as I write something in it.



3 Replies

VR Vignesh Ramesh Syncfusion Team September 13, 2019 01:53 PM UTC

Hi Martin,  
Greetings from Syncfusion.  
We would like to convey that we have provide support for limited Mask. Please refer the following user guide link for more information about regular expression that supported by MaskedEdit.  

MA Martin September 16, 2019 06:43 AM UTC

Hello Vignesh,

I had a look into the documentation before, but I interpreted it more like a guideline than a restriction. It might help to mention the restriction to those specific mask characters in the documentation. Now that I know about it, i can adjust my code accordingly.


RA Rachel A Syncfusion Team September 16, 2019 06:51 AM UTC

Hi Martin, 
Thanks for your suggestion. 
We have considered your suggestion in improving the documentation and it will updated in the documentation content shortly. 

Live Chat Icon For mobile
Up arrow icon