How to replace spaces with dashes?

I am looking to replace spaces between words in a field with dashes "-"

Example:

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.


Solution 1:

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
clipwait
oldclip := Clipboard
StringReplace, clipboard, oldclip, %A_SPACE%, -, All
Send ^v{Enter}
Clipboard := save
oldclip = 
return

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