# `Ussd.Decisions.Regex`
[🔗](https://github.com/spesohq/ussd/blob/main/lib/ussd/decisions/regex.ex#L1)

Matches when the input matches `pattern`, e.g. `Regex.new(~r/^[0-9]{4}$/)`.

# `t`

```elixir
@type t() :: %Ussd.Decisions.Regex{pattern: Regex.t()}
```

# `new`

```elixir
@spec new(Regex.t()) :: t()
```

---

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