# `RDF.Utils.Regex`
[🔗](https://github.com/rdf-elixir/rdf-ex/blob/v3.0.1/lib/rdf/utils/regex.ex#L1)

Drop-in replacements for Elixir `Regex` functions.

In Elixir, each execution of a compiled regex includes a verification step to
ensure the PCRE version of the regex is compatible with the version compiled
with the local OTP. While this verification introduces a slight overhead, the
cumulative effect can be significant, particularly since evaluating regular
expressions is crucial for performance in RDF.ex. This is especially notable
during deserialization, where regular expression are evaluated in quite tight
loops.

All regular expressions are evaluated in RDF.ex through the functions in this
module which can be configured with the `optimize_regexes` key in the
compile-time application environment to circumvent Elixir and call through to
Erlang `re` directly:

    config :rdf,
      optimize_regexes: true

By default this optimization is disabled and should be enabled only if your
application is running in a controlled environment.

# `match?`

# `run`

---

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