# `PhoenixReplay.Redactor.Patterns`
[🔗](https://github.com/elixir-vibe/phoenix_replay/blob/v0.6.2/lib/phoenix_replay/redactor/patterns.ex#L1)

Replaces matches of regexes with `"[REDACTED]"`.

This is the redactor behind a list of patterns in `:redact`:

    config :phoenix_replay,
      redact: [~r/\b\d{13,19}\b/, ~r/[\w.+-]+@[\w-]+\.[\w.]+/]

Patterns can be given as strings, which is convenient in releases. With
no patterns, recordings are stored as the sanitizer left them.

## Options

  * `:patterns` — compiled regexes (required)

---

*Consult [api-reference.md](api-reference.md) for complete listing*
