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"
- customer faqs
- how we can help
- planning your budget
- customer case
- 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).