Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

Delete Everything(the rest of the text) after a specific string

Tags:

notepad++

How can i delete Everything after a string like 'gnirts'. this might give you a better understanding: Before

and after

like image 771
Dark Sterix Avatar asked Feb 02 '16 11:02

Dark Sterix


1 Answers

Using find and replace:

  1. Hit CTRL-H to open the Replace dialogue box
  2. enter gnirts.* into Find what
  3. leave Replace with empty
  4. Select Regular expression and .matches newline
  5. Click on Replace

enter image description here enter image description here

like image 69
Denham Coote Avatar answered Oct 08 '22 16:10

Denham Coote