Custom Patterns
Extend Redactorr's detection capabilities with organization-specific patterns tailored to your data.
Redactorr Pro Required
Custom patterns are available with Redactorr Pro. Upgrade to create unlimited custom patterns for your organization's unique data types.
View Pro PlansWhat Are Custom Patterns?
While Redactorr includes 50+ built-in patterns for common sensitive data types, every organization has unique identifiers and proprietary formats that need protection. Custom patterns let you define your own detection rules.
Common Use Cases
Internal IDs
Employee IDs, customer numbers, order references
Custom Credentials
Proprietary API keys, internal auth tokens
Business Codes
Product codes, inventory numbers, tracking IDs
Industry-Specific
Medical record formats, legal case numbers
Creating Custom Patterns
Open Pattern Editor
Navigate to Settings → Custom Patterns in your dashboard and click "Add New Pattern".
Define Pattern Details
Write Regex Pattern
Define the regular expression that identifies your sensitive data:
# Example: Employee ID pattern (EMP-XXXXX)
EMP-\d{5}
Test Your Pattern
Use the built-in testing tool to validate your pattern with sample data:
Test Input:
Employee EMP-12345 submitted request on 2024-01-15
Match Found:
EMP-12345
Save and Enable
Once validated, save your pattern. It will be immediately active for all document processing.
Regex Syntax Guide
Custom patterns use standard regular expression syntax. Here are common patterns:
\dAny digit (0-9)Example: \d{4} matches 4 digits like "1234"
\wWord character (a-z, A-Z, 0-9, _)Example: \w{8} matches 8 characters like "abc12_XY"
[A-Z]Character class (any uppercase letter)Example: [A-Z]{3}\d{4} matches "ABC1234"
(a|b)Alternation (match a or b)Example: (EMP|MGR)-\d{5} matches "EMP-12345" or "MGR-67890"
+One or moreExample: \d+ matches "5" or "12345"
?Optional (0 or 1)Example: ID-?\d{4} matches "ID-1234" or "ID1234"
Pattern Examples
Employee ID
EMP-\d{5}Order Number
ORD[A-Z]{2}\d{8}Internal API Key
acme_[a-f0-9]{32}Customer Reference
CUST-\d{4}-[A-Z]{3}Best Practices
- •Be Specific: More specific patterns reduce false positives
- •Test Thoroughly: Validate patterns with real-world samples
- •Use Word Boundaries: Add
\bto match whole words only - •Document Patterns: Add clear descriptions for team members
- •Review Regularly: Update patterns as your data formats evolve
Ready for Custom Patterns?
Upgrade to Redactorr Pro to unlock custom pattern creation