title: Java regex to replace special character, one or more spaces and period with special character and period
body: <p>I have the following string:</p>
  
  <pre><code>See it now! .5..%..off your purchase!.Only today.
  </code></pre>
  
  <p>I would like it to be </p>
  
  <pre><code>See it now! 5% off your purchase! Only today.
  </code></pre>
  
  <p>Which is:</p>
  
  <p>every special character followed by zero or more spaces and one or more periods, will be replaced with the special character and a space. In case of a number and 2 periods, it will be replace with spaces only</p>
  
  <p>How can I do it?</p>