Wildcard v0.1.0 Wildcard View Source
Wildcard is a module that can be used to interact with wildcard statements intended to match text
Link to this section Summary
Functions
Converts an expression that can contain wildcards into a regex that can be used to match text. The resulting regex does not anchor to the beginning or end of the string using ^ or $. All non-wildcard text in the given expression is converted to raw text
Link to this section Functions
Converts an expression that can contain wildcards into a regex that can be used to match text. The resulting regex does not anchor to the beginning or end of the string using ^ or $. All non-wildcard text in the given expression is converted to raw text.
Example
iex> Wildcard.to_regex("man*pig")
~r/man.*pig/