Displaying page
of
pages;
Items to
Title |
Test
Details
Pattern Title
|
Expression |
^(http|https|ftp)\://[a-zA-Z0-9\-\.]+\.[a-zA-Z]{2,3}(:[a-zA-Z0-9]*)?/?([a-zA-Z0-9\-\._\?\,\'/\\\+&%\$#\=~])*$
|
Description |
Modified URL RegExp that requires (http, https, ftp)://, A nice domain, and a decent file/folder string. Allows : after domain name, and these characters in the file/folder sring (letter, numbers, - . _ ? , ' / \ + & % $ # = ~). Blocks all other special characters-good for protecting against user input!
|
Matches |
http://www.blah.com/~joe | ftp://ftp.blah.co.uk:2828/blah%20blah.gif | https://blah.gov/blah-blah.as
|
Non-Matches |
www.blah.com | http://www.blah"blah.com/I have spaces! | ftp://blah_underscore/[nope]
|
Author |
Rating:
Brandon Luhring
|
Displaying page
of
pages;
Items to