I'm having troubles on keeping the first 8 characters in Notepad++.
I have a list like this :
johndoe2.21test
markdoetesting.new
marvin213.jo.hn
abcd1234.dcba
And I want a output like this:
johndoe2
markdoet
marvin21
abcd1234
Can you point me in the right direction ?
Use find and replace, check the extended option, look for :\r\n and replace with \r\n . This will remove them all except for the last line.
Use regular expression search, search for ^........................... and replace with (empty string). Alternatively, use rectangular multi-line selection (press Alt while selecting) to select these first 27 characters in every line, then press Delete or Backspace .
Press Ctrl+F to open Find window, click on the Replace tab, check that you have selected Regular Expression option, now add ^ in the Find textbox and the text you want at the start of each line in the Replace textbox, and click Replace all.
You could use the column select feature for this.
You can also use Find and Replace in Regular Expression mode.
^(.{8}).*
\1
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