Replace multiple spaces with Notepad++

The one programme I miss when I am at work, forced (not entirely unwillingly) to use an iMac with a screen the size of tombstone is Notepad++

I’ve been trying to process a text document with a search / replace, but the regular expression support seems a bit limited (see wiki)

To find two or more spaces I used the following expression:


([\s]+)([\s]+)

3 Comments

  1. Darfuria says:

    Ah, but if you use TextMate, you can use the Espresso Libre theme and have beautifully coloured code! : http://www.unwrongest.com/wp-content/uploads/2009/04/esp-libre.png

  2. John says:

    Alas Dan, I’m an Eclipse fan. I like to have a sort of big fat editor / IDE but also a nice fast text editor for just stuff like copy / paste, notes, bits of code from the IDE while I’m working you know. One thing I will say though, TextEdit is properly rubbish. Give me notepad any day!

  3. Darfuria says:

    Ah, I use Coda personally, which is nice enough for simple template development. I quite like having the themed code colourscheme though, rather than eye-burning black-on-white.

Leave a Reply