# `Juggernaut.Operators.Regex`
[🔗](https://github.com/holsee/juggernaut/blob/v0.4.0/lib/juggernaut/operators/regex.ex#L1)

Mutates a non-interpolated `~r` sigil (Mutare `regex`, a reduced set). Each change is
its own mutant, labelled with Mutare's variants:

  * `pattern` - the whole pattern → `~r//` and `~r/juggernaut/`;
  * `anchor` - a leading `^` or `\A`, or a trailing `$`, `\z` or `\Z`, removed;
  * `class` - `\d`, `\w`, `\s`, `\b` swapped with their complements, a class's
    negation toggled;
  * `dot` - `.`↔`\.` outside classes;
  * `quantifier` - `+`↔`*`, `+`, `*` or `?` removed, `?` → `+` and `*`;
  * `laziness` - a lazy suffix added to a greedy `+`, `*` or `?`;
  * `alternation` - one top-level branch removed;
  * `modifier` - each sigil modifier removed.

Every candidate must compile with `Regex.compile/2`. Not made (Mutare makes them):
anchor exchanges, range endpoint moves, scoped dotall variants and bound changes.

---

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