fork download
  1. import re
  2. comment = """
  3. /*
  4. other comment
  5. */
  6.  
  7. /*
  8. ******************************************************************
  9. $Log: oldfile.c,v $
  10. Revision 11.4 2000/01/20 19:01:41 userid
  11. blah blah blah
  12.  
  13. */
  14. """
  15.  
  16. result = re.sub(r"/\*\s+\*+\s+\$Log.*?\*/", "", comment , 0, re.DOTALL)
  17. print result
Success #stdin #stdout 0s 23352KB
stdin
Standard input is empty
stdout
/* 
other comment
*/