Title |
Test
Find
Pattern Title
|
Expression |
^((ht|f)tp(s?))\://([0-9a-zA-Z\-]+\.)+[a-zA-Z]{2,6}(\:[0-9]+)?(/\S*)?$ |
Description |
Simple URL Validator -- allows http, https, ftp, ftps, 2-6 letter TLD, ports, any path. Sorry, no IP addresses. Not too fussy, but then, it's not too long either ;-) |
Matches |
http://www.site.com | https://www.secure.com:10000 | ftp://ftp.site.com/pub/files/ |
Non-Matches |
www.site.com | https://www.site.longtld | ftp:/badformat.com |
Author |
Rating:
Luke Arms
|
Source |
Luke Arms |
Your Rating |
|
Title: 22
Name: 22
Date: 4/2/2007 3:20:10 AM
Comment:
222