String.match-question-mark

You're seeing just the function match-question-mark, go back to String module for more information.

Specs

match?(t(), Regex.t()) :: boolean()

Checks if string matches the given regular expression.

Examples

iex> String.match?("foo", ~r/foo/)
true

iex> String.match?("bar", ~r/foo/)
false