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......
Inserting new lines for entier text file
Moderators: AmigoJack, bbadmin, helios, Bob Hansen, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Hello ksk051182............
You asked:
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
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.
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