Any regular expression guru here?

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

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

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

RE: Any regular expression guru here?

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

RE: Any regular expression guru here?

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

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? Here's

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 expression guru here

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. Is

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 brad
Subject: Re: Any regular expression guru here? From: Don L [EMAIL PROTECTED] Date: Thu, November 13, 2008 12:08 pm To: cf-talk cf-talk@houseoffusion.com 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

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 looked at the

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