You are here: PSPad forum > English discussion forum > How to strip line numbers?

How to strip line numbers?

#1 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?

Options: Reply | Quote | Up ^


#2 Re: How to strip line numbers?

Posted by: wolf2600 | Date: 2014-05-13 13:35 | IP: IP Logged

Nevermind. Used 'replace' to replace ^\d\d?\d?\w with nothing.

Thanks

Options: Reply | Quote | Up ^


#3 Re: How to strip line numbers?

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.

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