Regex arguments and the use of the pipe operator

It’s worth noting that you can use

  • String.replace(string, regex, replacement),
  • String.split(string, regex), and
  • String.match?(string, regex)

instead of the equivalent Regex functions.

https://hexdocs.pm/elixir/String.html

4 Likes