how to convert spaces to dashes !

Discussion in 'Keywords' started by eliasmoosa, Jul 8, 2006.

  1. #1
    Hi,

    any script there please to convert the space between words in phrases to dashes ?

    like if i have a lot of phrases in text file and want them to become phrases with dashes in between :

    before:
    cat dog frog
    hi bye

    after :
    cat-dog-frog
    hi-bye

    please advice me .. thank you :)
     
    eliasmoosa, Jul 8, 2006 IP
  2. tschrock

    tschrock Peon

    Messages:
    527
    Likes Received:
    24
    Best Answers:
    0
    Trophy Points:
    0
    #2
    You might try ising a text editor like Open Office or MS Word and do a find and Replace All. Search for a space and replace all with a -

    Good luck!
     
    tschrock, Jul 8, 2006 IP
  3. DXL

    DXL Peon

    Messages:
    380
    Likes Received:
    21
    Best Answers:
    0
    Trophy Points:
    0
    #3
    SciTE pwns OOo and MS Word \o/

    <textarea id="SciTEimitator"></textarea><input type="button" onclick="document.getElementById('SciTEimitator').value = document.getElementById('SciTEimitator').value.replace(/ /g, '-');" value="Replace All" />
    Code (markup):
     
    DXL, Jul 8, 2006 IP