You are here: PSPad forum > English discussion forum > macro delete lines without criterion

macro delete lines without criterion

#1 macro delete lines without criterion

Posted by: pspadder | Date: 06/23/2012 00:01 | IP: IP Logged

hi

does anyone know how to delete lines that do not contain certain criteria, e.g. "§" and ":" ?
is it possible to build a macro/script to do this quickly for a big file, e.g. 30mb ?

thanks in advance!

Options: Reply | Quote | Up ^


#2 Re: macro delete lines without criterion

Posted by: pspad | Date: 06/23/2012 07:04 | IP: IP Logged

There is possibility use Find dialog and regular expressions.
With COPY button with options Copy non-matching you can copy only lines you want into new file.

Options: Reply | Quote | Up ^


#3 Re: macro delete lines without criterion

Posted by: nergmlam | Date: 06/25/2012 09:07 | IP: IP Logged

Hi PsPadder

Macro doesn't work with CTRL+F find

forum.pspad.com

But maybe pspad knows how to script it, so you can get the feature you want

--
Sincerely

J. Malmgren
IT-Programmer
Denmark
Version 4.5.7(2441)

Options: Reply | Quote | Up ^






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