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 nooooooo testing!

<cfsavecontent variable="str">a=
b=tyweu8939skdksspdssdsd
c=sd</cfsavecontent>

<cfdump var='#REMatch("b=(.*)?\r", str)#'>

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

Reply via email to