How to replace the first several characters on multiple lines in Notepad++

notepad

I have a lot text, and I want to remove the first 4 characters in all lines,
then insert a character at the beginning of all lines.

How can I do this using Notepad++?

Best Answer

Search -> Replace, make sure you have "Search Mode" set to "Regular expression"

Find what: ^....
Replace with: Your_new_character

Replace All

That will only work on lines that have at least 4 characters in them, though.

Related Question