You are viewing a single comment's thread. Return to all comments →
import re s = input() k = input() print(*[(x.start(), x.start()+len(k)-1) for x in re.finditer(r"(?={})".format(k), s)] or [(-1, -1)], sep="\n")
Seems like cookies are disabled on this browser, please enable them to open this website
Re.start() & Re.end()
You are viewing a single comment's thread. Return to all comments →