With three replaces similar to the following:

string = replace(string, "#chr(10)##chr(13)#0", "|0", "all");

You can do it without regex.  Really, unless there's a need to do it with 2
lines instead of 3, regex is overkill.

--  Ben Doom
    Programmer & General Lackey
    Moonbow Software, Inc

: -----Original Message-----
: From: David DiPietro [mailto:[EMAIL PROTECTED]
: Sent: Thursday, September 04, 2003 12:50 PM
: To: CF-Talk
: Subject: Simple RegEx question
:
:
: Hi,
:
: I'm using cffile to read a .txt file.
: I need to Replace the Carriage Return Line feed with a '|' when
: the new line
: begins with a '0' or a '1'
: and a '*' when the new line begins with a '"'.
:
: I am just too unfamiliar with RegEx to do it.
:
: Any Ideas?
:
: David DiPietro
: OSU College of Medicine
:
:
:
: 
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~|
Archives: http://www.houseoffusion.com/lists.cfm?link=t:4
Subscription: http://www.houseoffusion.com/lists.cfm?link=s:4
Unsubscribe: http://www.houseoffusion.com/cf_lists/unsubscribe.cfm?user=89.70.4

Get the mailserver that powers this list at 
http://www.coolfusion.com

Reply via email to