title: Replace hyphen with a dash
body: <p>Replace every . (dot) with a - (hyphen) except when the dot is surrounded by digits. E.g.: <code>.a.b.1.2.</code> should become <code>-a-b-1.2-</code></p>
  
  <p>I tried the code</p>
  
  <pre><code>/(^\.|\.$|\b\.\b)(?!\d\.\B)/gm
  </code></pre>
  
  <p>Substitute</p>
  
  <pre><code>-
  </code></pre>
  
  <p>Result returned</p>
  
  <p>Test 8/11: Read the task description again. Do not touch anything sandwiched between digits!</p>
  
  <p>How do I modify the Regex?</p>
  
  <p>Regex <a href="https://regex101.com/r/cmwx8J/4" rel="nofollow noreferrer">demo</a></p>