Kernel.sigil_r
You're seeing just the macro
sigil_r
, go back to Kernel module for more information.
Handles the sigil ~r
for regular expressions.
It returns a regular expression pattern, unescaping characters and replacing interpolations.
More information on regular expressions can be found in the Regex
module.
Examples
iex> Regex.match?(~r(foo), "foo")
true
iex> Regex.match?(~r/abc/, "abc")
true