Revision: 12139
Initial Code
Initial URL
Initial Description
Initial Title
Initial Tags
Initial Language
at March 3, 2009 11:33 by allnatural
Initial Code
var url:String = "http://www.google.com"; var regex:RegExp = /^http(s)?:\/\/((\d+\.\d+\.\d+\.\d+)|(([\w-]+\.)+([a-z,A-Z][\w-]*)))(:[1-9][0-9]*)?(\/([\w-.\/:%+@&=]+[\w- .\/?:%+@&=]*)?)?(#(.*))?$/i; trace(regex.test(url)); // returns true if valid url is found
Initial URL
http://www.flashcomguru.com/index.cfm/2009/2/17/regexp-validate-url
Initial Description
Founds this via http://www.flashcomguru.com/index.cfm/2009/2/17/regexp-validate-url
Initial Title
URL Validation via RegExp
Initial Tags
url, regexp, validation
Initial Language
ActionScript 3