human
re sub multiple replacements.
assistant
Here is a Python function to resub multiple replacements

import re

def re_sub_multiple(s, *patterns):
    """
    Replace multiple patterns in a string.

    >>> re_sub_multiple("Hello, world!", "o", "O")
    'Hello, WORLD!'
    """
    return re.sub(*patterns, s)

# Enter the string
string = "Hello, world!"

# Calling the function
print((re_sub_multiple(string, "o", "O")))

#Example Output
# HellO, wOrld!

#Remember to inspect code for bugs.