Unicode.Regex.match-question-mark

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

match?(regex_string, string, opts \\ "u")

View Source

Returns a boolean indicating whether there was a match or not with a Unicode Set.

Arguments

  • regex_string is a regular expression in string form.

  • string is any string against which the regex match is executed

  • options is a string or a list which is passed unchanged to Regex.compile/2. The default is "u" meaning the regular expression will operate in Unicode mode

Returns

  • a boolean indicating if there was a match or

  • raises an exception if regex is not a valid regular expression.

Example

iex> Unicode.Regex.match?("[:Sc:]", "$")
true