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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Valid URL without protocol
Expression
^([\w-]+\.)+[\w-]+(/[\w-./?%&=]*)?$
Description
Use this expression to check that a valid web address is used without any protocol.
Matches
www.myurl.com | myurl.com/default.aspx?i=id | www3.myurl.com/?a
Non-Matches
www.my url.com | myurl.com/default.aspx?i=1 2 3 | www3.myurl.com?a | http://myurl.com
Author Rating: The rating for this expression. Craig Palenshus
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-2024, RegexAdvice.com | ASP.NET Tutorials