Can someone explain why the code below returns an empty list:
>>> import re
>>> m = re.findall("(SS){e<=1}", "PSSZ")
>>> m
[]
I am trying to find the total number of occurrences of SS
(and incorporating the possibility of up to one mismatch) within PSSZ
.
I saw a similar example of code here: Search for string allowing for one mismatch in any location of the string