Home →
Redaction Guides
→ Redact Matter Numbers
How to Redact Client Matter Numbers from PDFs
Law firms and corporate legal departments often assign matter numbers or internal reference IDs to cases and projects. These identifiers can reveal confidential client relationships and should often be removed before documents are shared outside the organization.
Important: PermanentRedaction permanently removes text from text-based PDFs. Scanned/image-only PDFs are not supported.
Quick notes
Tip: Many PDF editors can only mask text with black rectangles. Masking is not the same as permanently deleting text from the PDF layer.
Step-by-step
Step 1
Identify where client matter numbers appear in the document. These are often located in headers, footers, or case summaries.
Step 2
Use a pattern that targets common labels such as “Matter No.” or “Matter Number.”
See Example: Matter number label pattern
Regex
(?i)\bmatter\s*(?:no\.?|number|#)\b\s*[:\-]?\s*[A-Z0-9\-]{3,20}
Matches
- Matter No. 22-1048
- Matter # A-8821
- Matter Number: 19-7724
Start with label-aware rules to avoid matching unrelated case numbers or reference numbers.
Using regex rules in PermanentRedaction
PermanentRedaction supports deterministic redaction rules using regular expressions.
Patterns like this can be applied across an entire document to permanently remove matching text.
Step 3
Preview matches across the document to confirm they correspond to matter numbers.
Step 4
Apply redactions to the identified matter numbers.
Step 5
Export and verify the final PDF to ensure the identifiers are permanently removed.
Common mistakes to avoid
Using a generic number pattern
Matter numbers can resemble case numbers, invoice numbers, or ticket IDs.
Missing repeated headers or footers
Matter numbers often appear on every page of legal documents.
Not verifying the export
Always confirm the numbers are not searchable in the final PDF.
FAQ
Why redact matter numbers?
Matter numbers can reveal confidential client relationships and internal legal tracking systems.
Do matter numbers follow a standard format?
No. Each organization may use different prefixes or numbering systems.
Can these rules be customized?
Yes. If you know your firm’s numbering format, you can create a tighter pattern.