0

I have opened a list of log files in Notepad++, and would like to use Regular Expressions to remove everything (on each line), which precedes the log file name itself (as attached).

If anybody can offer advice on how to go about removing the unnecessary information on each line (using RegEx) it would be greatly appreciated.

Kind Regards,

Davo

enter image description here

  • It's recommended to provide the text not in an image, but in text itself, also an expected output would also be good for anyone trying to help you. – Vinícius Figueiredo Jul 26 '17 at 01:00
  • What's your exact problem? You dunno how to bring up replace in Notepad++? You dunno how to turn on regex for Replace dialog? You cannot figure out what is the correct regex? You want to replace multiple files at once in Notepad++? or something else? – Adrian Shum Jul 26 '17 at 01:44

2 Answers2

1

Try these steps:

  1. Ctrl+h
  2. in find type .*IN
  3. In replace type IN
  4. Select Regular Expression checkbox.
  5. Click Replace All
Agam
  • 1,015
  • 2
  • 11
  • 21
0

In this case, you don't even need to get fancy with search replace, just use block selection and press delete. Block selection can be done like normal selection but hold down the ALT key

Keith Nicholas
  • 43,549
  • 15
  • 93
  • 156