I have some text I want to edit using Notepad++.
The text follows a pattern such as test 1 - test1
, test 2 - test2
, test 3 - test3
and so on, one per line. I would like to 'cut' all the characters on every line after the '-' character/symbol. I need everything that has been cut to be put in clipboard so i can paste it elsewhere. (If the prefix can not be put in the clipboard, then simply how to delete all characters after the '- ' would suffice).
By search\replace in notepad using -.* will remove everything after the '-'. I need to know how to cut and copy it rather. If I can figure out how to remove everything BEFORE the '-', like the above does, I can just copy it all. Any ideas? Would be much easier.