How to remove the first 5 characters in each line in Notepad++

- Open Notepad++ and load the file from which you need to remove the characters.
- Go to the Search menu and select Replace.
- In the Replace window that opens, check the box next to the Match case option.
- Select the Regular expression option at the bottom of the window.
Using regular expressions
To remove the first 5 characters in each line, use the following regular expression:
^.{5}(.*)
- In the Find field, enter
^.{5}(.*)
. - In the Replace with field, enter
\1
- Click Replace All to remove the first 5 characters in each line of the file.
Example
Consider an example. Suppose we have a text file with the following content:
12345Hello 12345World 12345Test
After performing the above steps, the result will be:
Hello World Test
With these simple steps, you can easily remove the first 5 characters in each line in Notepad++.