Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I have a file with the format:


I was trying to figure out how to remove the ! symbol at the end of each line. I tried using "Find and replace" in Notepad++ but it didn't work. Any ideas on this one?

share|improve this question
gVim and regex. L(earn|ove|ive) it! :) – jnovack Apr 5 '13 at 20:07

In Notepad++, press Ctrl-H (Replace...). In the Replace dialog box, click Extended under Search Mode. In the "Find what" box type !\r and in the "Replace with" box type \r. Then click Replace All.

To make this work for all lines in the file, you need to make sure that the last line is blank (you can remove the blank line later if you wish). Or manually edit the last line.

Depending on the file you might need to use \n instead of \r.

share|improve this answer

Find and Replace !\n with \n in Extended mode in Notepad++.

share|improve this answer

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .