Back to all patterns
Redacted Token Marker
Security
Matches common log-redaction markers used to scrub secrets.
/^(?:[*]{4,}|REDACTED|<redacted>|\[REDACTED\])$/iHow it works
When auditing logs for secret leaks, you also need to recognize the redaction markers your own tooling emits to avoid false positives.
Test Cases
Should Match
- ****
- REDACTED
- <redacted>
- [REDACTED]
Should NOT Match
- secret
- sk_live_abcd
Quick Summary
Matches common redaction markers (asterisks, REDACTED, <redacted>, [REDACTED]).