re.sub(pattern, repl, string, count=0, flags=0) # The sub() is a function in the built-in re module that handles regular expressions.