Advertisement
ghiwar

Delete everything after the first space in Notepad++

Jun 6th, 2019
204
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.48 KB | None | 0 0
  1. If the data in the first column never contains a space, you can use a regular expression find and replace to get what you want.
  2.  
  3. In regular expression mode, search for:
  4.  
  5. ^([^ ]*).*
  6. And replace with
  7.  
  8. \1
  9.  
  10.  
  11. Before
  12. 70.97.110.40 159 ms [n/a] 21
  13. 70.97.117.177 134 ms [n/a] 21
  14. 70.97.120.10 75 ms [n/a] 21
  15.  
  16. After
  17. 70.97.110.40
  18. 70.97.117.177
  19. 70.97.120.10
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement