Re: Any regular expression guru here?

2008-11-13 Thread Don L
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 l

Re: Any regular expression guru here?

2008-11-13 Thread Don L
>> 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 lo

RE: Any regular expression guru here?

2008-11-13 Thread 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 f

Re: Any regular expression guru here?

2008-11-13 Thread Don L
>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... >

Re: Any regular expression guru here?

2008-11-13 Thread Don L
>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

RE: Any regular expression guru here?

2008-11-13 Thread Adrian Lynch
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 expre

RE: Any regular expression guru here?

2008-11-13 Thread Andy Matthews
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? H

RE: Any regular expression guru here?

2008-11-13 Thread Adrian Lynch
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 w

RE: Any regular expression guru here?

2008-11-13 Thread Andy Matthews
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-

Re: Any regular expression guru here?

2008-11-13 Thread Michael Dinowitz
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 a

Re: Any regular expression guru here?

2008-11-13 Thread Jerry Johnson
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