import retext = "Сэр (анг) — английский"text = re.sub(r'\s*\([^()]*\)', '', text)print(text)
Standard input is empty
Сэр — английский
The brand new service which powers Ideone!
Widget for compiling and running the source code in a web browser!