title: sed substitute whitespace for dash only between specific character patterns
body: <p>I have a lines like these: </p>
  
  <p>ORIGINAL</p>
  
  <pre><code>sometext1 sometext2 word:A12 B34 C56 sometext3 sometext4
  sometext5 sometext6 word:A123 B45 C67 sometext7 sometext8
  sometext9 sometext10 anotherword:(someword1 someword2 someword3) sometext11 sometext12
  </code></pre>
  
  <p>EDITED</p>
  
  <pre><code>asdjfkklj lkdsjfic kdiw:A12 B34 C56 lksjdfioe sldkjflkjd
  lknal niewoc kdiw:A123 B45 C678 oknes lkwid 
  cnqule nkdal anotherword:(kdlklks inlqok mncvmnx) unqieo lksdnf
  </code></pre>
  
  <p>Desired output: </p>
  
  <pre><code>asdjfkklj lkdsjfic kdiw:A12-B34-C56 lksjdfioe sldkjflkjd
  lknal niewoc kdiw:A123-B45-C678 oknes lkwid 
  cnqule nkdal anotherword:(kdlklks-inlqok-mncvmnx) unqieo lksdnf
  </code></pre>
  
  <p><em>EDITED: Would this be more explicit? But frankly this is much more difficult to read and answer than writing <code>sometext#</code>. I do not know people's preference.</em></p>
  
  <p>I only want to replace the whitespaces with dashes after A alphabet letter followed by some digits AND replace the whitespaces with dashes between the words between the two parentheses. And not any other whitespaces in the line. Would appreciate an explanation of the syntax too.</p>
  
  <p>Thanks!</p>