Page 1 of 1

Automatically apply a carriage return at a ~

Posted: Fri Oct 24, 2003 12:03 am
by dnwerner
I have to review text based EDI Files where a ~ character is used numerous times within a very long string to indicate the next element.

Is there a way to automatically apply a carriage return after every instance of this character (or replace the ~ with a carriage return) to make viewing easier?

Posted: Fri Oct 24, 2003 12:23 am
by talleyrand
F8 (search and replace)
Find what = [~]
Replace with = \n
Regular Expression = Checked

[edit]
Oh and sorry about having to deal with EDI *shudders at the memories*
[/edit]

EDI - ANSI X12N

Posted: Thu Nov 13, 2003 11:59 pm
by davidakoontz
If you're doing Health Care - ANSI ASC X12N 835 - you might want to
take a look at these macros.

http://www.geocities.com/dakoontz/proje ... ities.html

It will do the search replace for the '~' and format the ANSI file with indents, along with a color syntax highlighting of segment names.

David

Posted: Fri Nov 14, 2003 2:47 am
by maniac
david - was wondering, where in AR are you? I'm in North Little Rock myself...