Regex help reference for Notepad++
http://blog.hakzone.info/posts-and-arti ... nt-page-1/
http://docs.notepad-plus-plus.org/index ... xpressions
load a list of names for example, generated online that has hidden double spaces at the end of each line before the newline characters
look in notepad++ with the option view->show symbol->show all characters
the first and last name will have a single orange dot between them and two dots at the end before the newline CR LF
CR is carriage return LF is line feed, like an old dot matrix printer or CMD prompt as example
now select all the text, CTRL+A keys
CTRL+F to find
CTRL+H to replace
try to find first to learn where they are
in Find What type [ ]
choose search mode -> regular expression button
choose Find Next to go one at a time, or Count to see how many single and double spaces there are (all single finds)
Now, if you choose Replace or CTRL+H, look for [ ][ ]
again make sure you have chosen search mode->regular expression
and replace with choose the area and make sure you delete everything, replace with nothing
Code: Select all
[ ]
You can simply do it twice without spaces in between
Code: Select all
[ ][ ]