fork download
  1. import re
  2. text = "Сэр (анг) — английский"
  3. text = re.sub(r'\s*\([^()]*\)', '', text)
  4. print(text)
Success #stdin #stdout 0.02s 9436KB
stdin
Standard input is empty
stdout
Сэр — английский