Thank you very much for your help. That worked out really well...
Best regards,
Chris A.
-----Original Message-----
From: Paul Wakefield [mailto:[EMAIL PROTECTED]]
Sent: Monday, April 24, 2000 12:34 AM
To: '[EMAIL PROTECTED]'
Subject: RE: ReReplaceNoCase is too greedy question
Instead of:
"%%(.+)%%"
try:
"%%([^%]+)%%"
"%%, followed by one or more characters that don't match %, followed by %%"
--
Paul Wakefield
All opinions expressed herein are those of the author and not of The Board
of Executors
> -----Original Message-----
> From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]]
> Sent: Friday, April 21, 2000 10:08 PM
> To: [EMAIL PROTECTED]
> Subject: ReReplaceNoCase is too greedy question
>
>
> Hi,
>
> I am trying to do a regular express that will replace all
> defined areas of a
> text file with a blank. ie..
>
> City, State, Zip:________Aurora, California, 80013 Relocation Date
> (Generally same as start date): 12/31/9999 Relocation
> Category:_____%%TestField%%
> blah blah blah blah
> %%NextField%%
> My regular express looks like this
> <cfset content = ReReplaceNoCase(content,"%%(.+)%%","",'All')>
> This call replaces everything between the first "%%" and the
> last "%%" 3
> lines down in the text with the blank. I want it to not be greedy and
> replace "%%TestField%%" with a blank, then leave the text
> alone until it
> encounters "%%NextField%%" which once encountered it only blanks the
> "%%NextField%%"
> Any help is appreciated.
>
----------------------------------------------------------------------------
--
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or
send a message to [EMAIL PROTECTED] with 'unsubscribe' in
the body.
------------------------------------------------------------------------------
Archives: http://www.eGroups.com/list/cf-talk
To Unsubscribe visit
http://www.houseoffusion.com/index.cfm?sidebar=lists&body=lists/cf_talk or send a
message to [EMAIL PROTECTED] with 'unsubscribe' in the body.