title: Small problem with reg exps in python
body: <p>So I have one variable that has all the code from some file. I need to remove all comments from this file. One of my regexp lines is this</p>
  
  <p><code>x=re.sub('\/\*.*\*\/','',x,re.M,re.S);</code></p>
  
  <p>What I want this to be doing is to remove all multi line comments. For some odd reason though, its skipping two instances of */, and removing everything up to the third instance of */.</p>
  
  <p>I'm pretty sure the reason is this third instance of */ has code after it, while the first two are by themselves on the line. I'm not sure why this matters, but I'm pretty sure thats why.</p>
  
  <p>Any ideas?</p>