replace_text method

replace_text

Replaces all matches of the regular expression with a given replacement.

def replace_text(self, regular_expression, options):
    ...
Parameter Type Description
regular_expression System.Text.RegularExpressions.Regex Regular expression to search and replace.
options ReplacementOptions Allows setting textual replacement or color for the redaction block.

Returns: Text replacement result.

Aliases

These names call replace_text too, limited to the overloads listed.

Alias Accepts
replace_text_regex replace_text_regex(regular_expression, options)

See Also