You are here: PSPad forum > English discussion forum > Delete first 4 Characters in all lines

Delete first 4 Characters in all lines

#1 Delete first 4 Characters in all lines

Posted by: garydavid711 | Date: 2015-07-20 09:11 | IP: IP Logged

i have 10,000 lines i need to delete fist 4 characters in all lines what is best way?

Options: Reply | Quote | Up ^


#2 Re: Delete first 4 Characters in all lines

Posted by: pspad | Date: 2015-07-20 09:15 | IP: IP Logged

Go to begin of the first line and press F8 (2 phase block select) - symbol will appear on the statusbar
Go to the last line on end of the block position (after 4th character) and press F8 again
Change block selection to Column - Shift+Ctrl+C (or menu format or click on the block symbol on Statusbar)
Press DEL to delete your selection

You can use regular expression too:
Search/Replace dialog
Find: ^.{4,4}(.*)
Replace: $1
[x]regular expressions

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