You are viewing a single comment's thread. Return to all comments →
import re S,k = input().strip(),input().strip() print(*([(m.start(1), m.end(1)-1) for m in re.finditer(r'(?=(' + re.escape(k) + r'))',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 →