Displaying page
of
pages;
Items to
Title |
Test
Details
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
|
Title |
Test
Details
Pattern Title
|
Expression |
^([0-9a-zA-Z]+[-._+&])*[0-9a-zA-Z]+@([-0-9a-zA-Z]+[.])+[a-zA-Z]{2,6}$
|
Description |
A short and sweet email address validator. Checks that the username starts and ends with an alphanumeric character, allows a few non-repeating 'special characters' (namely -, ., _, +, &) and checks for a sensible domain name (2-6 character TLD required). Some unconventional, yet technically valid, addresses will not be matched, but this is only a simple expression ;-)
|
Matches |
|
Non-Matches |
|
Author |
Rating:
Luke Arms
|
Displaying page
of
pages;
Items to