Re: Any regular expression guru here?
Well, since the objective is to disable cf admin access. Just realized a silly and yet effective way would be to move the CFIDE directory away from web root. I hope it won't adversely impact the cf8 server. > What I'd like to want to do is to replace a value from a simple text > which looks like this: > a= > b=tyweu8939skdksspdssdsd > c=sd > > How do I replace the value of b when the b value is unknown? > > Thanks. > > ~| 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/cf-talk/message.cfm/messageid:315251 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any regular expression guru here?
>> It's the cf8's encrypted password for the admin. > >Well technically, it's an SHA-1 hash... > >It sounds like you're basically trying to parse your >lib\password.properties file? > >Perhaps there is another way to accomplish your task through the >adminAPI? > >~Brad Brad, good thought, just looked at the administrator.cfc, it does not seem to have a method for {admin pwd} reset or am I missing something or another cfc? Thanks. Don Chunshen Li ~| 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/cf-talk/message.cfm/messageid:315230 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Any regular expression guru here?
> It's the cf8's encrypted password for the admin. Well technically, it's an SHA-1 hash... It sounds like you're basically trying to parse your lib\password.properties file? Perhaps there is another way to accomplish your task through the adminAPI? ~Brad Original Message ---- Subject: Re: Any regular expression guru here? From: Don L <[EMAIL PROTECTED]> Date: Thu, November 13, 2008 12:08 pm To: cf-talk >In the example below, you only want to replace the b while leaving the a and >c alone, right? Right. Will the b always have a format of >"b=tyweu8939skdksspdssdsd". Does "tyweu8939skdksspdssdsd" have a pattern to >it? Not certain, most likely yes. It's the cf8's encrypted password for the admin. ~| 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/cf-talk/message.cfm/messageid:315229 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Any regular expression guru here?
>Ah! I think he meant the right side of the equals sign after b. > >But, if the value (right side of the =) contains 'b=' then we're in trouble >again. Yes, exactly, one way (theoritically) would be, have 3 segements for all 3 lines and find the seg2.element[2].value, but I don't know regexp... > >Adrian > >Adrian... > >The OP said he didn't know in advance what the value of b would be. If he >did, yours would work great. > >Here's my first attempt with nooo testing! > >a= >b=tyweu8939skdksspdssdsd >c=sd > > > >Adrian >Building a database of ColdFusion errors at http://cferror.org/ > >What I'd like to want to do is to replace a value from a simple text which >looks like this: >a= >b=tyweu8939skdksspdssdsd >c=sd > >How do I replace the value of b when the b value is unknown? > >Thanks. ~| 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/cf-talk/message.cfm/messageid:315228 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Any regular expression guru here?
>In the example below, you only want to replace the b while leaving the a and >c alone, right? Right. Will the b always have a format of >"b=tyweu8939skdksspdssdsd". Does "tyweu8939skdksspdssdsd" have a pattern to >it? Not certain, most likely yes. It's the cf8's encrypted password for the admin. >Is it that the b= values always have 21 characters after it? >Point is, what's the pattern associated with the b? The value of b has 40 characters and as mentioned, unknown. Thanks. ~| 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/cf-talk/message.cfm/messageid:315227 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Any regular expression guru here?
Ah! I think he meant the right side of the equals sign after b. But, if the value (right side of the =) contains 'b=' then we're in trouble again. Adrian -Original Message- From: Andy Matthews Sent: 13 November 2008 17:58 To: cf-talk Subject: RE: Any regular expression guru here? Adrian... The OP said he didn't know in advance what the value of b would be. If he did, yours would work great. -Original Message- From: Adrian Lynch Sent: Thursday, November 13, 2008 11:35 AM To: cf-talk Subject: RE: Any regular expression guru here? Here's my first attempt with nooo testing! a= b=tyweu8939skdksspdssdsd c=sd Adrian Building a database of ColdFusion errors at http://cferror.org/ -Original Message- From: Don L Sent: 13 November 2008 17:11 To: cf-talk Subject: Any regular expression guru here? What I'd like to want to do is to replace a value from a simple text which looks like this: a= b=tyweu8939skdksspdssdsd c=sd How do I replace the value of b when the b value is unknown? Thanks. ~| 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/cf-talk/message.cfm/messageid:315226 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
RE: Any regular expression guru here?
Adrian... The OP said he didn't know in advance what the value of b would be. If he did, yours would work great. -Original Message- From: Adrian Lynch [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:35 AM To: cf-talk Subject: RE: Any regular expression guru here? Here's my first attempt with nooo testing! a= b=tyweu8939skdksspdssdsd c=sd Adrian Building a database of ColdFusion errors at http://cferror.org/ -Original Message- From: Don L Sent: 13 November 2008 17:11 To: cf-talk Subject: Any regular expression guru here? What I'd like to want to do is to replace a value from a simple text which looks like this: a= b=tyweu8939skdksspdssdsd c=sd How do I replace the value of b when the b value is unknown? Thanks. ~| 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/cf-talk/message.cfm/messageid:315225 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any regular expression guru here?
Here's my first attempt with nooo testing! a= b=tyweu8939skdksspdssdsd c=sd Adrian Building a database of ColdFusion errors at http://cferror.org/ -Original Message- From: Don L Sent: 13 November 2008 17:11 To: cf-talk Subject: Any regular expression guru here? What I'd like to want to do is to replace a value from a simple text which looks like this: a= b=tyweu8939skdksspdssdsd c=sd How do I replace the value of b when the b value is unknown? Thanks. ~| 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/cf-talk/message.cfm/messageid:315223 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
RE: Any regular expression guru here?
There's a few things you could do, based on the consistency of the source string: 1) Are the 3 lines always separated by a line break? 2) Is each line always separated by an = sign? If so, then you could do this like so: a= b=tyweu8939skdksspdssdsd c=sd -Original Message- From: Don L [mailto:[EMAIL PROTECTED] Sent: Thursday, November 13, 2008 11:11 AM To: cf-talk Subject: Any regular expression guru here? What I'd like to want to do is to replace a value from a simple text which looks like this: a= b=tyweu8939skdksspdssdsd c=sd How do I replace the value of b when the b value is unknown? Thanks. ~| 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/cf-talk/message.cfm/messageid:315222 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4
Re: Any regular expression guru here?
In the example below, you only want to replace the b while leaving the a and c alone, right? Will the b always have a format of "b=tyweu8939skdksspdssdsd". Does "tyweu8939skdksspdssdsd" have a pattern to it? Is it that the b= values always have 21 characters after it? Point is, what's the pattern associated with the b? On Thu, Nov 13, 2008 at 12:11 PM, Don L <[EMAIL PROTECTED]> wrote: > What I'd like to want to do is to replace a value from a simple text which > looks like this: > a= > b=tyweu8939skdksspdssdsd > c=sd > > How do I replace the value of b when the b value is unknown? > > Thanks. > > > > > ~| 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/cf-talk/message.cfm/messageid:315220 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4
Re: Any regular expression guru here?
Also try the HOF regex list (which gets monitored by many, although there are few postings) is that a line break before and after the b= line? On Thu, Nov 13, 2008 at 12:11 PM, Don L <[EMAIL PROTECTED]> wrote: > What I'd like to want to do is to replace a value from a simple text which > looks like this: > a= > b=tyweu8939skdksspdssdsd > c=sd > > How do I replace the value of b when the b value is unknown? > > Thanks. > > > > > ~| 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/cf-talk/message.cfm/messageid:315219 Subscription: http://www.houseoffusion.com/groups/cf-talk/subscribe.cfm Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=11502.10531.4