PRO

Custom Redaction Rules — Define Your Own Regex Patterns

Define your own regex patterns — project codes, internal IDs, domain-specific identifiers caught and tokenized automatically.

100% Local Processing Airplane Mode Verified Zero Data Storage

How It Works

1

Add custom rule

Open the Custom Rules panel and define a regex pattern + label.

2

Test instantly

Paste sample text to see matched entities highlighted in real-time.

3

Auto-tokenized

Custom matches become [CUSTOM_N] tokens, processed alongside built-in types.

Zero-Trust PII Detection pipeline — raw document with PII passes through the PrivacyScrubber shield, producing anonymized tokens like [NAME_1] and [EMAIL_2]
How Custom Redaction Rules transforms sensitive data into AI-safe tokens — entirely in your browser

PrivacyScrubber's custom redaction rules processes your data 100% locally in browser memory. No server ever sees your content — verified by our Airplane Mode test. This Zero-Trust Data Sanitization (ZTDS) architecture meets enterprise security standards out of the box.

Real-World Use Cases

How Teams Use Custom Redaction Rules Daily

Development
API Key Patterns

DevOps teams define regex for AWS keys (AKIA...), GitHub tokens (ghp_...), and Stripe keys (sk_live_...) to catch credentials before they reach AI debugging tools.

Finance
Account Number Formats

Banks define custom patterns for internal account numbers (e.g., XX-XXXXXX-XX) that standard PII detection doesn't cover.

Healthcare
MRN Formatting

Hospitals define regex for Medical Record Number formats specific to their EMR system — catching identifiers that generic PII detection would miss.

Business
Project Codes

Consulting firms define patterns for internal project codes (e.g., PRJ-2026-XXXX) to prevent confidential engagement identifiers from appearing in AI outputs.

Unlock Custom Redaction Rules with PRO

Get PRO — $9.99 One-Time

Frequently Asked Questions

How do I write a custom regex pattern?

Use standard JavaScript regex syntax. For example, to catch AWS access keys: /AKIA[0-9A-Z]{16}/. The Custom Rules panel includes a real-time tester.

Are custom rules saved between sessions?

Custom rule definitions (patterns only, never data) can be saved locally if you enable the PRO rule persistence option. Matched data is never stored.

Can I prioritize custom rules over built-in detection?

Custom rules are processed first (sorted by pattern length, descending) to ensure domain-specific patterns take priority over generic built-in detection.

Related Features & Guides

Smart PII Detection
Built-in detection that custom rules extend
Batch Processing
Apply custom rules across multiple files
Custom Regex Guide
Step-by-step regex tutorial
Typed Token System
How custom matches become [CUSTOM_N]