URL regex

Hi,

How can I have a Regex for SfMaskedEdit which has the following URL formats only as VALID a


https://www.syncfusion.com

https://syncfusion.com

https://*.syncfusion.com (where * is any subdomain)


and it can have subfolders and ports, for example:

https://www.syncfusion.com/forums/1/2

https://www.syncfusion.com/forums?id=1&product=2

https://www.syncfusion.com?id=1&product=2


Thanks,

Jassim


1 Reply

VR Vignesh Ramesh Syncfusion Team November 18, 2021 03:19 PM UTC

Hi Jassim Rahma,  
  
Greetings from Syncfusion.  

We would like to inform you that, the regular expression is a general concept of C#, and our MaskedEdit supports it to specify the rules for accepting inputs. So, you have to create a regular expression based on your requirement. If you are facing any problem while providing your regular expression to our MaskedEdit please let us know. We can assist you. 

Please find the RegEx mask characters which are supported by MaskedEdit from the below user guide link 

Please find the below guidelines for generating the regular expression mask 

Regards, 
Vignesh Ramesh. 


Loader.
Up arrow icon