Automatically apply a carriage return at a ~

General questions about using TextPad

Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard

Post Reply
dnwerner
Posts: 1
Joined: Thu Oct 23, 2003 11:57 pm

Automatically apply a carriage return at a ~

Post 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?
User avatar
talleyrand
Posts: 624
Joined: Mon Jul 21, 2003 6:56 pm
Location: Kansas City, MO, USA
Contact:

Post 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]
I choose to fight with a sack of angry cats.
User avatar
davidakoontz
Posts: 8
Joined: Thu Nov 13, 2003 8:36 pm
Location: Arkansas USA
Contact:

EDI - ANSI X12N

Post 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
User avatar
maniac
Posts: 33
Joined: Thu Sep 25, 2003 4:16 am
Contact:

Post by maniac »

david - was wondering, where in AR are you? I'm in North Little Rock myself...
Post Reply