I have one issue while iterating the regex.
def wordsaraemovalFromPpt():
pptxListremove = []
for i in pptxFileList:
ppt = Presentation(i)
for j in userInputForRemove: #["Car","car","caR","Cars","ZZCarSzz"]
for slide in ppt.slides:
for shape in slide.shapes:
if shape.has_text_frame:
pattern = re.findall(j, shape.text, re.IGNORECASE)
pptxListremove.extend(pattern)
print(pptxListremove)
ppt.save(i)
wordsaraemovalFromPpt()
Suppose in ppt file i have word like "Car","car","caR","Cars","ZZCarSzz".
but i want only "Car","car","caR",
i dont want "Cars","ZZCarSzz"