RE: REReplace and RegExp

2002-04-23 Thread Raymond Camden
: Monday, April 22, 2002 6:11 PM To: CF-Talk Subject: RE: REReplace and RegExp Actually, this looks like a UDF candidate for cflib.org. Ray Camden? I don't have time to format it nicely for cflib.org. Anyone wants to volunteer? :) // Assuming that strFind and strReplace has no RegExp

RE: REReplace and RegExp

2002-04-23 Thread Troy Simpson
: Monday, April 22, 2002 5:45 PM To: CF-Talk Subject: RE: REReplace and RegExp Try this: REReplaceNoCase(agents, (/?)agent([[:space:]]*|[[:space:]]+[^]*), \1a\2, ALL) I have tested this code on CFAS 5 on WinXP. James Ang Senior Programmer MedSeek, Inc. -Original Message- From: Troy

Re: REReplace and RegExp

2002-04-23 Thread James Ang
-Talk [EMAIL PROTECTED] Sent: Tuesday, April 23, 2002 8:04 AM Subject: RE: REReplace and RegExp James, Thanks for the response. It has given me other ideas about how to approach this. It appears that the solution you provided only replaces that Tags, which is part of the desired solution. I also

RE: REReplace and RegExp

2002-04-23 Thread Troy Simpson
PM To: CF-Talk Subject: Re: REReplace and RegExp Troy, What you need is a 2-part parser. There isn't an easy way unless you decide to use MS XML Parser or the Apache.org Java parser to parse the XML. If you decided not to use the Apache or the MS XML parsers, here's how your tag parser would do

RE: REReplace and RegExp

2002-04-23 Thread James Ang
a portion of the Apache parser. Good luck! :) James Ang Senior Programmer MedSeek, Inc. [EMAIL PROTECTED] -Original Message- From: Troy Simpson [mailto:[EMAIL PROTECTED]] Sent: Tuesday, April 23, 2002 11:07 AM To: CF-Talk Subject: RE: REReplace and RegExp

REReplace and RegExp

2002-04-22 Thread Troy Simpson
Dear CF-Talkers: I have a string in the following format( I've added carriage returns for readability): cfset agents = 'agent primary=NO aid=157 acutter=O469Oldenburg, Claes Thure, b.1929/agent' 'agent primary=NO aid=2481 acutter=B847Bruggen, Coosje van, b.1942/agent' 'agent primary=YES

RE: REReplace and RegExp

2002-04-22 Thread James Ang
-Talk Subject: REReplace and RegExp Dear CF-Talkers: I have a string in the following format( I've added carriage returns for readability): cfset agents = 'agent primary=NO aid=157 acutter=O469Oldenburg, Claes Thure, b.1929/agent' 'agent primary=NO aid=2481 acutter=B847Bruggen, Coosje van, b

RE: REReplace and RegExp

2002-04-22 Thread James Ang
retVal; } James Ang Senior Programmer MedSeek, Inc. [EMAIL PROTECTED] -Original Message- From: James Ang Sent: Monday, April 22, 2002 2:45 PM To: CF-Talk Subject: RE: REReplace and RegExp Try this: REReplaceNoCase(agents, (/?)agent([[:space:]]*|[[:space:]]+[^]*), \1a\2, ALL) I have tested