Hi,
Searched but could not locate this answer.
How can I insert a word every 15 lines in a file?
For example:
line 1
line 2
(..and so on)
line 14
line 15
>insert "word" here<
line 17
line 18
line 19
Thank you
Tony
textpad: inserting a word every # of lines
Moderators: AmigoJack, bbadmin, helios, MudGuard
- Bob Hansen
- Posts: 1516
- Joined: Sun Mar 02, 2003 8:15 pm
- Location: Salem, NH
- Contact:
Search for: ^.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n.*\n
Replace with: \0new word\n
Replace All will not work, but Replace Next does work.
Use the following settings:
-----------------------------------------
[X] Regular expression
Replace Next
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Replace with: \0new word\n
Replace All will not work, but Replace Next does work.
Use the following settings:
-----------------------------------------
[X] Regular expression
Replace Next
-----------------------------------------
Configure | Preferences | Editor
[X] Use POSIX regular expression syntax
-----------------------------------------
Hope this was helpful.............good luck,
Bob
Bob