The regular expression used for matching. (inherited from RegexRedaction)
Example
fromgroupdocs.redactionimportRedactorfromgroupdocs.redaction.redactionsimportPageAreaRedaction,RegionReplacementOptions,ReplacementOptionsfromgroupdocs.redaction.options.drawingimportPoint,Size,ColorwithRedactor("scan.pdf")asredactor:# redact text and its image rendering in a page arearedaction=PageAreaRedaction(r"\d{3}-\d{2}-\d{4}",ReplacementOptions("[SSN]"),RegionReplacementOptions(Color.black,Size(120,20)))redactor.apply(redaction)redactor.save()