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