title: sed plus sign doesn't work
body: <p>I'm trying to replace <code>/./</code> or <code>/././</code> or <code>/./././</code> to <code>/</code> only in bash script. I've managed to create regex for sed but it doesn't work.</p>
  
  <pre><code>variable="something/./././"
  variable=$(echo $variable | sed "s/\/(\.\/)+/\//g")
  echo $variable # this should output "something/"
  </code></pre>
  
  <p>When I tried to replace only <code>/./</code> substring it worked with regex in sed <code>\/\.\/</code>. Does sed regex requires more flags to use multiplication of substring with <code>+</code> or <code>*</code>?</p>