I am using Notepad++. I have already used some comands like ^.....
but it didn't work.
How can I remove first 16 characters from each line?
This is a text line.
ramsandscriptstogetthebestinsightpossibleoutofitisthemostenjoyablepartofmyj
When I replace ^.{16}
with an empty string, it gives me this:
lepartofmyj
I only want to remove first 16 characters.
This worked for me (. matches newline
must be unchecked)
RegEx: ^.{1,16}(.*)$
Replace: \1
If you want not match lines less than 16 characters, leave them alone, you can use
RegEx: ^.{16}(.*)$
Replace: \1
I tested both expressions against
0123456789abcdefthis
0123456789abcdefis
0123456789abcdefa
0123456789abcdeftest
0123456789abcdef
of
things
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With