You are here: PSPad forum > English discussion forum > 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!
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.
Posted by: nergmlam | Date: 06/25/2012 09:07 | IP: IP Logged
Hi PsPadder
Macro doesn't work with CTRL+F find
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)
Editor PSPad - freeware editor, © 2001 - 2013 Jan Fiala
Hosted by Webhosting TOJEONO.CZ, design by WebDesign PAY & SOFT, code Petr Dvořák