You are here: PSPad forum > English discussion forum > How to strip line numbers?
Posted by: wolf2600 | Date: 2014-05-13 13:32 | IP: IP Logged
I cut and paste a chunk of code into the editor which has leading line numbers within the copied text. (Number Space Text).
Is there any way to quickly remove these leading numbers/spaces from all lines?
Like a regex filter to remove 1-3 digits and 1 space?
Posted by: wolf2600 | Date: 2014-05-13 13:35 | IP: IP Logged
Nevermind. Used 'replace' to replace ^\d\d?\d?\w with nothing.
Thanks
Posted by: pspad | Date: 2014-05-13 13:39 | IP: IP Logged
or ^\d{1,3}\s
Edited 1 time(s). Last edit at 2014-05-13 13:39 by pspad.
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