Note that this regex lets
http://www.mysite.com/folder/subfolder/folder3/this.is.the.file.cfm
and
http://www.mysite.com/folder/.cfm
through.
You may want to get even fancier and do something like
refind("http://www\.mysite\.com/folder/[^/.]+\.cfm", cgi.http_referrer)
Heehee. Slashdot!
And, as always, an open invitation to the Dojo, aka CF-RegEx:
http://www.houseoffusion.com/cf_lists/index.cfm?method=threads&forumid=21
where the CF Regex ninjas will be happy to help defeat your enemies .. er ..
problems.
-- Ben Doom
Programmer & General Lackey
Moonbow Software, Inc
: -----Original Message-----
: From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
: Sent: Friday, February 21, 2003 5:25 PM
: To: CF-Talk
: Subject: RE: Wildcard in statements
:
:
: > No, not with a direct string comparison. You must make
: > your pilgrimage to
: > the temple of RegEx.
:
: > <cfif REfind("http://www\.mysite\.com/folder/.*\.cfm",
: > cgi.http_referer) GT
: > 0>
:
: I'd add the beginning of string and end of string markers just to be
: thorough.
:
: <cfif
: REfind("^http://www\.mysite\.com/folder/.*\.cfm$",cgi.http_referer) GT
: 0>
:
: And if you find youself wanting this sort of thing often, subscribe to the
: cf-regex list also @houseoffusion.com - low traffic, but lots of great
: advice if you're ever stuck.
:
: s. isaac dealey 954-776-0046
:
: new epoch http://www.turnkey.to
:
: lead architect, tapestry cms http://products.turnkey.to
:
: tapestry api is opensource http://www.turnkey.to/tapi
:
: certified advanced coldfusion 5 developer
: http://www.macromedia.com/v1/handlers/index.cfm?ID=21816
:
:
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/cf_lists/index.cfm?forumid=4
Subscription:
http://www.houseoffusion.com/cf_lists/index.cfm?method=subscribe&forumid=4
FAQ: http://www.thenetprofits.co.uk/coldfusion/faq
Signup for the Fusion Authority news alert and keep up with the latest news in
ColdFusion and related topics. http://www.fusionauthority.com/signup.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4