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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Web urls
Expression
^((https|http)://)?(www.)?(([a-zA-Z0-9\-]{2,})\.)+([a-zA-Z0-9\-]{2,4})(/[\w\.]{0,})*((\?)(([\w\%]{0,}=[\w\%]{0,}&?)|[\w]{0,})*)?$
Description
Matches the most common urls in the web
Matches
www.isis.net | https://securedomain.com | http://www.domainwithwww.com | isis.blogspot.com/path//Somefile.aspx?WSDL | http://www.google.com/SomeFile.aspx/?querystring=somegarbage | http://www.mail.ru/?mapped=value%20withspace
Non-Matches
http://www.invalidtld.morethanfourchars | http://s.com/?tooshortdomain | ftp://this.protocol.is/not?included=But&if=You%20wish&You=Can%20Add
Author Rating: Not yet rated. Isis The Black
Source Myself ))
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