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

Please support RegExLib Sponsors

Sponsors

Regular Expression Details

Title Test Find Pattern Title
Expression
^(((ht|f)tp(s?))\://).*$
Description
Identifies http, https, ftp, and ftps
Matches
http://3iem.net/ | https://foo.org | ftps://jormahma.tk/
Non-Matches
yahoo.com | lame://protocol.us
Author Rating: The rating for this expression. Phil Cogbill
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

Title: possible extension
Name: Philip Best
Date: 7/23/2007 3:00:34 PM
Comment:
I believe https:////// would still be allowed. I would suggest ^(((ht|f)tp(s?))://)[a-zA-Z_\.]*$


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