Regex to replace multiple blank spaces
Search

Regex to replace multiple blank spaces


A common problem when editing text is to come across a file that has characters separated with differing numbers of blank spaces. If you want to pull the text together so there's only one blank space between each word you can run a simple Regular Expression search.

Using a text editor like NotePad++ simply enter " +" - two blank spaces followed by the plus sign, and replace this with one blank space.

So text that looks like this:

. . . . get changed to this:


Contact Me With Your Litigation Support Questions:

seankevinoshea@hotmail.com

  • Twitter Long Shadow

© 2015 by Sean O'Shea . Proudly created with Wix.com