What is the purpose of the re.sub() function in Python?

What is the purpose of the re.sub() function in Python? Correct Answer It replaces occurrences of a pattern with a specified string

Related Questions

What is the purpose of the str() function in Python?