fork download
  1. import re
  2. regex = r'\\i[\d{}]+'
  3. string = "\i{}Agrostis\i0{} <L.>"
  4.  
  5. string = re.sub(regex, '', string)
  6. print string
Success #stdin #stdout 0.02s 9016KB
stdin
Standard input is empty
stdout
Agrostis <L.>