I have 2 strings and I want to find all locations of one string within another. String.find works but not regex.
sub: (dont want to) call in
str1: i cant (dont want to) call in
str1.find(sub) returns 7 but
[(m.start(0), m.end(0)) for m in re.finditer(sub,str1)] returns empty list