fork download
  1. import re
  2. s = '*CHI:\t<that> [/] (.) that (i)s it . [+ bch]\n'
  3. s = re.sub('(\(\.\))|[()]', r'\1',s)
  4. print(s)
Success #stdin #stdout 0.03s 27712KB
stdin
Standard input is empty
stdout
*CHI:	<that> [/] (.) that is it . [+ bch]