The regex pattern to match sensitive information. Can use capture groups that can be referenced in the replacement string.
OptionalprecheckOptional quick check function that returns true if the message might contain sensitive data matching this rule. Used as a fast early-exit optimization to avoid running expensive regex operations on messages that definitely don't contain sensitive data.
If not provided, the regex pattern will always be executed.
The replacement string. Can include capture group references like $1, $2, etc.
Represents a sanitization rule with a pattern and replacement string.