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