Default Redaction Rules and Exclusions
Use the following rule to redact all numbers:
{ "description": "replace all digits with #", "regex": "\\d", "repl": "#" }
Use the following rules to exclude specific number types from redaction:
Exclude ordinal numbers from redaction:
{ "description": "exclude ordinal numbers from scrubbing", "regex": "^(¿)?(\\d+/)?\\d+(st|nd|rd|th|ᵒ|ᵃ|e|er|re)[.,?]?$", "repl": "", "text": false, "report": false, "audio": false }
Exclude percentages from redaction:
{ "description": "exclude percentages from scrubbing", "regex": "^((\\d+\\.)?\\d+%)([.,?]?)$", "repl": "", "text": true, "report": true, "audio": true }
Exclude times from redaction:
{ "description": "exclude clock times from scrubbing", "regex": "^(¿)?([1-9]|10|11|12):[0-5][0-9]( [AP]M)?[.,?]?$", "repl": "", "text": false, "report": false, "audio": false }
Exclude price amounts from redaction:
{ "description": "exclude prices from scrubbing", "regex": "^(¿)?([\\d,. ]+(R?\\$|€)|(R?\\$|€)[\\d,. ]+)[.,?]?$", "repl": "", "text": false, "report": false, "audio": false }
Exclude short decimal numbers from redaction:
{ "description": "exclude short floating point numbers (w/decimal point) from scrubbing", "regex": "^(¿)?\\d{1,4}[.,]\\d{1,4}[.,?]?$", "repl": "", "text": false, "report": false, "audio": false }