Custom PatternsPro Feature

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 Plans

What 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

1

Open Pattern Editor

Navigate to Settings → Custom Patterns in your dashboard and click "Add New Pattern".

2

Define Pattern Details

3

Write Regex Pattern

Define the regular expression that identifies your sensitive data:

# Example: Employee ID pattern (EMP-XXXXX)

EMP-\d{5}

4

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

5

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 more

Example: \d+ matches "5" or "12345"

?Optional (0 or 1)

Example: ID-?\d{4} matches "ID-1234" or "ID1234"

Pattern Examples

Employee ID

Pattern:EMP-\d{5}
Matches:EMP-12345, EMP-98765

Order Number

Pattern:ORD[A-Z]{2}\d{8}
Matches:ORDUS12345678, ORDUK98765432

Internal API Key

Pattern:acme_[a-f0-9]{32}
Matches:acme_a1b2c3d4e5f67890a1b2c3d4e5f67890

Customer Reference

Pattern:CUST-\d{4}-[A-Z]{3}
Matches:CUST-1234-ABC, CUST-5678-XYZ

Best Practices

  • Be Specific: More specific patterns reduce false positives
  • Test Thoroughly: Validate patterns with real-world samples
  • Use Word Boundaries: Add \b to 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