I am using the following to get all matches including overlapping as per recommendations on other threads:
[(m.start(0), m.end(0)) for m in re.findall(t,s,overlapped = True)]
where t is a subset of s. However, I get the following error:
Traceback (most recent call last):
File "<stdin>", line 1, in <module>
TypeError: findall() got an unexpected keyword argument 'overlapped.'
What am I doing wrong/is overlapped an outdated flag/how would you do it? All help is much appreciated.