Contact: aviboots(AT)netvision.net.il
39,924 questions
51,857 answers
573 users
import re s = "Python c c++ PHP c#" ch = "p" empty = '' s = re.sub('(?i)' + re.escape(ch), lambda m: empty, s) print(s) ''' run: ython c c++ H c# '''