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 Yet another URI checker
Expression
^([a-zA-Z]+)://([a-zA-Z0-9_\-]+)((\.[a-zA-Z0-9_\-]+|[0-9]{1,3})+)\.([a-zA-Z]{2,6}|[0-9]{1,3})((:[0-9]+)?)((/[a-zA-Z0-9_\-,.;=%]*)*)((\?[a-zA-Z0-9_\-,.;=&%]*)?)$
Description
Checks whether the entered string looks like a URI, with a specified protocol. Optionally, you can add the port number, and some GET variables. The control is quite loose, but it's a choice of mine. Comments and corrections are welcome.
Matches
this://is.accepted.com/?and=it&sO=K | this://is.accept.ed?too= | and://also.this.one:12/?is=right
Non-Matches
this.is.NOT.accepted | neither://this.is&one | abs://olut.ely.no:way
Author Rating: Not yet rated. Claudio Di Ciccio
   Displaying page 1 of 1 pages; Items 1 to 1

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