You are here: PSPad forum > English discussion forum > Delete lines

Delete lines

#1 Delete lines

Posted by: garydavid711 | Date: 2013-02-18 12:56 | IP: IP Logged

is there a command that can be given to delete certain lines in a text
such as all lines begin with *
or
all lines between brackets

example
Adam had, so to speak, broken the first great *commandment, Cain the first and the second; Adam had committed sin, Cain both sin and crime. As a warning, and *yet as a witness to all, Cain, driven from his previous chosen occupation as a tiller of the ground, was sent forth "a fugitive and a vagabond in the earth." So - if *we may again resort to analogy - was Israel driven forth into all lands, when with wicked hands they had crucified *and slain Him whose blood "speaketh better things than that of Abel." But even this punishment, though "greater" than Cain "can bear," leads him not to repentance, only to fear of its consequences. And "lest any finding him should kill him," Jehovah set a mark upon Cain, just as *He made the Jews, amidst all their persecutions, an

"to look like this"

Adam had, so to speak, broken the first great st and the
committed sin, Cain both sin and crime. As a warning, and chosen occupation as a tiller of the ground, was sent forth "a fugitive and a vagabond in the earth." So - if into all lands, when with wicked hands they had crucified that of Abel." But even this punishment, though "greater" than Cain "can bear," leads him not to repentance, only to fear of its consequences. And "lest any finding him should kill him," Jehovah set a mark upon Cain, just as

Options: Reply | Quote | Up ^


#2 Re: Delete lines

Posted by: myf | Date: 2013-02-19 10:34 | IP: IP Logged

You can get new document with all lines (not) containing some string: if you want to remove all lines beginning with "*" search for "^\*" (enable regex), check "copy non-matching" and press "copy".

If you want to delete multiple lines between some expressions, you must use other tool or plugin.

Options: Reply | Quote | Up ^


#3 Re: Delete lines

Posted by: garydavid711 | Date: 2013-02-20 23:24 | IP: IP Logged

yea i can make this work--thanks

Options: Reply | Quote | Up ^






Editor PSPad - freeware editor, © 2001 - 2024 Jan Fiala, Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák, Privacy policy and GDPR