Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

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.

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

2 Answers 2

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
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).

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

 
discard

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.