replace_regex method

replace_regex

Replaces all matches of the regular expression with the specified string.

def replace_regex(self, regex, new_text):
    ...
ParameterTypeDescription
regexstrThe string contains regular expression to get strings to replace.
new_textstrThe string to replace all occurrences of the strings to be replaced.

See Also