Special characters in replace text

Find, replace, find in files, replace in files, regular expressions

Special characters in replace text

Postby ultramfa » Sat Jul 17, 2004 7:24 pm

I need to insert a 3rd line between 2 specific lines when they appear in sequence. I can easily find the 2 lines with a regex, but how do I then insert the 3rd between them, short of learning Perl? Can this be done in Ulra Edit somehow? I could do it in most cases if I could use a newline in the "replace" text.
User avatar
ultramfa
Newbie
 
Posts: 1
Joined: Fri Jul 16, 2004 11:00 pm

Re: Special characters in replace text

Postby DanKirkd » Mon Jul 19, 2004 11:51 am

You can use a newline in the Replace text. A ^p repesents a newline.

Click Help on the Replace dialog for full details.

Dan
User avatar
DanKirkd
Basic User
Basic User
 
Posts: 39
Joined: Wed Jul 14, 2004 11:00 pm


Return to Find/Replace/Regular Expressions