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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find 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
Source
Your Rating
Bad Good

Enter New Comment

Title

Name

Comment

Spammers suck - we apologize. Please enter the text shown below to enable your comment (not case sensitive - try as many times as you need to if the first ones are too hard):

Existing User Comments

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