fork download
  1. import re
  2. t = 'String_BA22_FR22_BC'
  3. print(re.sub(r'(?<=FR)\d+','',t))
Success #stdin #stdout 0.02s 27712KB
stdin
Standard input is empty
stdout
String_BA22_FR_BC