Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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 am looking to replace spaces between words in a field with dashes "-"


From: "See it here" To: "See-it-here"

  1. customer faqs
  2. how we can help
  3. planning your budget
  4. customer case
  5. studies tenant

Should be easy is the any online or offline tool

Thanks for any help.

share|improve this question
see edited question – metal gear solid Dec 22 '09 at 7:08
You may want to let people know this is based on your other question ( ) or else you're going to get a lot of solutions involving text editors. – John T Dec 22 '09 at 7:44
up vote 1 down vote accepted

Since this is based on your other question, the easiest method would be to highlight the specified string, then use another hotkey (tested and working):

save := ClipboardAll
Send ^c
oldclip := Clipboard
StringReplace, clipboard, oldclip, %A_SPACE%, -, All
Send ^v{Enter}
Clipboard := save
oldclip = 

Alt + - can then replace all spaces with dashes in the currently selected text (if the control is editable).

share|improve this answer

Use Notepad++ to search and replace a regular expression in your text. You should look for all spaces within words only.

Replace a regular expression

share|improve this answer
how with which regex command – metal gear solid Dec 22 '09 at 8:42

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.