Initializes a new instance of ExactPhraseRedaction in case‑insensitive mode.
def__init__(self,search_phrase,options):...
Parameter
Type
Description
search_phrase
str
String to search and replace.
options
ReplacementOptions
Replacement options (textual, color).
Example
fromgroupdocs.redaction.redactionsimportExactPhraseRedaction,ReplacementOptions# Replace occurrences of "John Doe" with "[CUSTOMER]" (case‑insensitive)redaction=ExactPhraseRedaction("John Doe",ReplacementOptions("[CUSTOMER]"))