Doggie

Build Status

Doggie is a tiny library that provides the most commonly used regular expression patterns. This library can be useful when you don't want to write regular expression manually. You can use doggie in testing phase of your software. Doggie is a translate of expynent library to Elixir.

Usage

Very simple example:

def email(address) do
  case Regex.match?(Doggie.email(), address) do
    true  -> {:ok, :valid}
    false -> {:error, :invalid}
    _ -> {:some_other_stuff}
  end
end

Installation

If available in Hex, the package can be installed by adding doggie to your list of dependencies in mix.exs:

def deps do
  [{:doggie, "~> 0.1.0"}]
end

License

Doggie is licensed under the MIT License. See LICENSE for more information.