http://www.rixsoft.com/ColdFusion/regex.html

> -----Original Message-----
> From: Paul Johnston [mailto:[EMAIL PROTECTED]
> Sent: 21 March 2003 09:47
> To: [EMAIL PROTECTED]
> Subject: RE: [ cf-dev ] URL Validation
> 
> 
> ...sigh...
> 
> There are many ways to check a valid URL.  Most people's 
> validation is just
> too simple and allows very simple URL's that are blatantly 
> invalid. For
> example, the previous regex:
> 
> > REFindNoCase("^[a-z]+://[a-z0-9:@&=;?%$.+!*'(),-]+(/[a-z0-9:@&
> > =;?##%$_.+!*'(),-]*)*$", attributes.url)>
> 
> would have allowed (watch wrapping)
> 
> "abcsdfsdfsdfsdfsdfsdfsdfsdf://:::::===@@@@@@@@......+++/@&@&@
> &@&@&+====;/''
> '-.,"
> 
> Which to me looks invalid.
> 
> Do a search of the archives for: "Regular Expression for 
> Email and Domain
> Checking"
> 
> If you want you can update and alter the regex in the 
> isValidEmail function
> I have created for emails (it has to validate a domain too 
> [see archive
> above for some in-depth explanation], see if you can go from there):
> 
> http://www.pjnetsolutions.com/regex/isValidEmail.func
> 
> Have fun!
> 
> Paul
> 
> 
> 
> 
> -- 
> ** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/
> 
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
> For human help, e-mail: [EMAIL PROTECTED]
> 
> 

--
** Archive: http://www.mail-archive.com/dev%40lists.cfdeveloper.co.uk/

To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
For human help, e-mail: [EMAIL PROTECTED]

Reply via email to