RegularExpression Validator (Regex) to check valid HTTP, HTTPS and FTP URLs in ASP.Net

Last Reply on Aug 18, 2015 08:48 AM By EmadKhan

Posted on Aug 18, 2015 08:40 AM

Hi ! this is my regular expression which i am using for url :

^((http|https|ftp)://)?(([\w-]+\.)+[^#?\s]+)(.*)?(#[\w\-]+)?$

Now it is allowing comma , i dont want to allow comma in it . Kindly help

Posted on Aug 18, 2015 08:48 AM

I found a solution for this :

^((http|https|ftp)://)?(([\w-]+\.)+[^,#?\s]+)([^,]*)?(#[\w-]+)?$

 

I agree, here is the link: https://www.e-iceblue.com/Introduce/spire-office-for-net-free.html