import res = '/* comment */ variable owner; /* comment */'rx = r'/\*[^*]*\*+(?:[^/*][^*]*\*+)*/'print(re.sub(rx, '', s))
Standard input is empty
variable owner;
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!