2 lines
88 B
Elixir
2 lines
88 B
Elixir
str = "This is a string"
|
|
if str =~ ~r/string$/, do: IO.inspect "str ends with 'string'"
|