Delete multiple lines

General discussions about Advanced Find and Replace
Post Reply
Posts: 1
Joined: Thu Oct 13, 2005 9:30 am

Delete multiple lines

Post by borly » Thu Oct 13, 2005 9:34 am

Is possible to delete multiple lines.

hello adsfas asdfas fasdf asdfsad
a sdfasd fasdf asdfdsfglklghdfgh
dfgh dfghdfghdfghdfh dghfdgh dfg

dfghfghd fgh dfg
dfgh dfgh dfg

asdfasd fasd

anybody know the regular expresion to delete from hello to bye.???

Site Admin
Posts: 1218
Joined: Mon Jan 31, 2005 5:32 pm

Post by Abacre » Thu Oct 13, 2005 9:56 am


Yes, it's possible.

To to main menu - Action - Batch replace and
check ON: "Modifier S". So the regular expressions will handle multiple
lines at once.

Then in main window go to Batch replace tab.
Check ON: "Use regular expressions".
Put into Search for:

Replace with:
should be empty, because you delete the text.

One note:
in your case hello and bye are placed at the beginning of the lines.
In regular expressions begin of line is ^ char.

So for more reliability (for example theoretically bye maybe placed
somewhere in the middle of the text) you should use:
Search for:

Replace with:
should be empty, because you delete the text.

Read more about syntax of r.e.:
Use Regular Expression Builder (in Batch replace tab) for testing.

PS instead of using r.e. you may also use Between action of Replace
Kind regards,
Abacre Limited

Post Reply