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.
:)

> 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
> execute faster
> than any regex...

> <cfif left(cgi.http_referer, 30) EQ
> "http://www.mysite.com/folder/";
>       AND right(cgi.http_referer,4) EQ ".cfm">

> --
> mailto:[EMAIL PROTECTED]
> Friday, February 21, 2003, 4:25:29 PM, you wrote:

> ML> Can a wildcard character, such as a "*" be used
> successfully in the
> ML> following statement, or is there a better way:

> ML> <cfif CGI.HTTP_REFERER IS
> "http://www.mysite.com/folder/*.cfm";>

> ML> Thanks, Mark

> ML>
> ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
> ~~~~~~~~~~~|
> 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
> This list and all House of Fusion resources hosted by
> CFHosting.com. The place for dependable ColdFusion
> Hosting.

>                               Unsubscribe: http://www.houseoffusion.com/cf_lists/uns
>                               ubscribe.cfm?user=633.558.4



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
This list and all House of Fusion resources hosted by CFHosting.com. The place for 
dependable ColdFusion Hosting.

                                Unsubscribe: 
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
                                

Reply via email to