[Steve Bernard]
>It would also help to add position matching characters such as
>^ and $. This would prevent additional information from being
>passed along the URL.
A good idea for an IsURL()-type function, but not for a URLify() or
FindURL() -type function, where the URL could be in the middle of the
string.
>I also added the ability to accept an optional 's' for HTTPS URLs.
Excellent. Hadn't thought of that. Thanks. :)
>I'm thinking about the username/password part but, it will take
>more than a second to whip out.
Not a problem, especially if you know perl and can mess with the
already-provided generator. :) I also fixed a couple other
perl-to-cf-conversion quirks. (I didn't realize that CF doesn't escape
hyphens in the middle of character classes, you have to put them at the
front.)
I think that puts us at:
(https?://((((([-$_.+[:alnum:]!*'(),]|(%[[:xdigit:]]{2}))|[;?&=])*)(:((([-a-
zA-Z0-9$_.+!*'(),]|(%[[:xdigit:]]{2}))|[;?&=])*))?@)?((((([[:alnum:]](([[:al
num:]]|-)*[[:alnum:]])?)\.)*([[:alpha:]](([[:alnum:]]|-)*[[:alnum:]])?))|(([
[:digit:]]+)(\.([[:digit:]]+)){3}))(:([[:digit:]]+))?))(/(((([-a-zA-Z0-9$_.+
!*'(),~]|(%[[:xdigit:]]{2}))|[;:@&=])*)(/((([-a-zA-Z0-9$_.+!*'(),~]|(%[[:xdi
git:]]{2}))|[;:@&=])*))*)(\?((([-a-zA-Z0-9$_.+!*'(),~]|(%[[:xdigit:]]{2}))|[
;:@&=])*))?)?)
Anyone or anything else?
-Rick
------------------------------------------------------------------------------
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.