Page 1 of 1

Inserting new lines for entier text file

Posted: Thu Aug 14, 2003 5:34 pm
by ksk051182
8) Hello everyone,
Can anyone help me with this?
I want to add new lines for entire text file.

Example:

Hello Bob,
How are you doing?
I'm doing good.

After inserting new lines

Hello Bob,

How are you doing?

I'm doing good.


I have used

Find what: \n
Replace with: \n\n

and don't work......

Posted: Thu Aug 14, 2003 5:45 pm
by webmasta
//

Posted: Fri Aug 15, 2003 3:28 am
by Bob Hansen
Hello ksk051182............

You asked:
I want to add new lines for entire text file.

Example:

Hello Bob,
How are you doing?
I'm doing good.

After inserting new lines

Hello Bob,

How are you doing?

I'm doing good.
:idea: Try this:

Search:\(^.+\)

Replace:\1\n

===========================
Explanation of RegEx Search String:
\( = start of first tagged expression
^ = start from beginning of line.
. = any character, digit, space, etc.
+ = one or more of the previous characters
\) = end of first tagged expression

==========================
Explanation of RegEx Replace String:
\1 = first tagged expression
\n = Line break

===========================
Common English translation: Find any line that is not blank (has one or more characters), and follow it with an additional line break.


Hope this helps.................good luck,
Bob