Not a regex but works:
<cfset method = "recycle">
<cfset method = "badMethod">
<cfset allowedMethods = "discard,recycle,generate,frankGrimes">
<cfif ListFindNoCase(allowedMethods, method)>
<cfoutput>#method# can come in...</cfoutput>
<cfelse>
<cfoutput>#method# has no business being here!</cfoutput>
</cfif>
Adrian
Building a database of ColdFusion errors at http://cferror.org/
-----Original Message-----
From: D T
Sent: 30 October 2008 19:21
To: regex
Subject: not in pattern - regex method pointcut advisor
Hello,
Please help me.
I'm trying to write an expression for coldspring's regex method pointcut
advisor. I'm trying to write a regular expression that is a white list of
methods that I do not want intercepted.
So I don't want any discard|recycle|generate|frankGrimes methods
intercepted. Please help me.
The current regular expression to handle the situation is
[^discard|recycle|generate|frankGrimes]
I want to matched everything but. For example: Login, ChangePassword,
GenerateStrongPassword.
Suggestions? Thanks
Damien
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Adobe® ColdFusion® 8 software 8 is the most important and dramatic release to
date
Get the Free Trial
http://ad.doubleclick.net/clk;207172674;29440083;f
Archive: http://www.houseoffusion.com/groups/regex/message.cfm/messageid:1180
Subscription: http://www.houseoffusion.com/groups/regex/subscribe.cfm
Unsubscribe:
http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.21