(A bit tongue-in-cheek for a second, here.)
Have you seen a good regex for validating URLs lately? It's *nasty*. See:
http://www.foad.org/~abigail/Perl/url2.html
Or, if you're the type of person who skips to the end, the regex can be
found here:
http://www.foad.org/~abigail/Perl/url3.regex
It's a bit more than 7500 characters long. :) However, I think that it
would make an *excellent* test of CF's regex engine. Of course you'd have
to translate from perl-style regexs to CF-style regexs, but it should be
possible.
-R
-----Original Message-----
From: Jennifer [mailto:[EMAIL PROTECTED]]
Sent: Tuesday, August 01, 2000 1:31 PM
To: [EMAIL PROTECTED]
Subject: Re: Functions in Cold Fusion
How about IsURL?
At 01:10 PM 8/1/00 -0400, you wrote:
>OK, I need some community input here. For my article on custom functions,
>I've written one for IsEmail and IsPhone. Can people send me a few others
to
>'add in'. I'd like the article to have a few pre-built functions that can
be
>used right off the bat. The only limits are that they must be built using
>functions in CF. No tags. For example, IsPhone uses this code:
>REFindNoCase('([0-9]{3}[-_. /]?)?[0-9]{3}[-_. /]?[0-9]{4}', number)
------------------------------------------------------------------------------
Archives: http://www.mail-archive.com/cf-talk@houseoffusion.com/
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.