Simple Text Break

Help with writing and playing macros

Simple Text Break

Postby wisowaty » Wed Aug 23, 2006 7:38 pm

Sorry if this was posted elsewhere I could not find it.

I have a "really" large text file open with UE. I need to define a macro with a specific line of text..ie-TEXTTEXTTEXT. After every line of text that reads (TEXTTEXTTEXT) I want it to start a new line.

ex: this is for the test TEXTTEXTTEXT
this is test two TEXTEXTTEXT
etc

So with this large file a macro would condense the text into particular lines after each time it found that text file. I have done similar things with UE, with macros like Find "TEXTTEXTTEXT" but I cannot get it to break it into seperate lines. If anyone has any input it would be great, Im racking my brain and being rather counterproductive. Thanks in advance..

Adam
User avatar
wisowaty
Newbie
 
Posts: 3
Joined: Tue Aug 22, 2006 11:00 pm

Re: Simple Text Break

Postby Mofi » Thu Aug 24, 2006 5:01 am

A normal replace can do that.

Find "TEXTTEXTTEXT"
Replace "TEXTTEXTTEXT^p"

^p inserts CRLF. For more "codes" see help about the Find or Replace command.
User avatar
Mofi
Grand Master
Grand Master
 
Posts: 4051
Joined: Thu Jul 29, 2004 11:00 pm
Location: Vienna


Return to Macros