python regex get position of match code example Example: py string find regex pos import re re.search('o{3}', 'Python is slooow!').start() # 12