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
that should do it.
barneyb
-Original Message-
From: Mark Leder [mailto:[EMAIL PROTECTED]
Sent: Friday, February
Thanks fellow pilgrim :o)
Thanks, Mark
-Original Message-
From: Barney Boisvert [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 4:30 PM
To: CF-Talk
Subject: RE: Wildcard in statements
No, not with a direct string comparison. You must make your pilgrimage to
the temple
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
: -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
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
Question already answered, but I don't see why the wouldn't be
possible with standard string functions.
Just looking at your single line of pseudo-code, it looks like you want
to know if the referer is a cfm template in a certain directory.
This bit of code would do that and would definitely
There's no reason why it couldn't -- those of us familiar with regular
expressions answered the question with regex immediately for 2 reasons: 1)
because the way the question is phrased brings regex immediately to mind for
us and 2) because to a man with a hammer, every problem looks like a nail.
barneyb
-Original Message-
From: S. Isaac Dealey [mailto:[EMAIL PROTECTED]
Sent: Friday, February 21, 2003 6:12 PM
To: CF-Talk
Subject: Re: Wildcard in statements
There's no reason why it couldn't -- those of us familiar with regular
expressions answered the question with regex
8 matches
Mail list logo