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

Last Reply one year ago By EmadKhan

Posted one year ago

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 one year ago

I found a solution for this :

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

 

I agree, here is the link: http://e-iceblue.com/free-api