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

the title says it all, I can;t find a option in notepad+ for removing for example charater 10 to 20.

Do I mis something or is there a other option for it?


original line:

<div id="dot"><a id="69149d5ac2-70"  href="

must look like:

<div id="dot"><a href="
share|improve this question
up vote 1 down vote accepted

I'm not sure this is what you're asking, but if you need to delete chars 10 to 20 of each line, a fast way of doing this is block selection.

You just keep ALT pressed while dragging to select a rectangular block of characters. Then hit DEL to delete them.

share|improve this answer
thisis the easiest sollution for me :) thanks – Chris Sep 19 '10 at 18:47

Unfortunately, Notepad++ doesn't support {i,j} bounds for atom counts in regexes.

The following instructions will remove the string based on its contents. It may select other strings in your file that are similar so be careful with the Replace All button.

  • Select Replace from the Search menu.
  • In the Find What field enter: (<a) id="[0-9a-f-]*" (there's a space after the final quote).
  • In the Replace With field enter \1.
  • Select Regular Expression in the Search Mode box.
  • Use Find Next, Replace and Replace All as needed.
share|improve this answer

You must log in to answer this question.

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