RegExLib.com - The first Regular Expression Library on the Web!

Please support RegExLib Sponsors

Sponsors

Expressions by User

   Displaying page 1 of 1 pages; Items 1 to 1
Title Test Details URL Validation
Expression
(http|ftp|https)://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,4}(/\S*)?$
Description
This Regex check protocol (ftp, http, https), extension should be between 2 and 4 chars example (.co.uk, .com, .us and .info), domain or subdomain name between protocol and extension should contain the following chars a-z, A-Z, 0-9, "-", and "." The rest of URL after "/" contain unicode char
Matches
http://domain-1.us | ftp://www.domain.co.uk | https://domain.info | https://subdomain.domain.info | http://subdomain.domain.info/الجزائر.html
Non-Matches
http://domain.infor | http://domain_1.com
Author Rating: Not yet rated. Mahdi Kamel
   Displaying page 1 of 1 pages; Items 1 to 1

Copyright © 2001-2025, RegexAdvice.com | ASP.NET Tutorials