An Elixir library to generate random strings that match the given Regex
Switch branches/tags
Nothing to show
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
config
lib
test
.formatter.exs
.gitignore
.travis.yml
LICENSE
README.md
mix.exs
mix.lock

README.md

Randex

Build Status Hex.pm

A library to generate random strings that match the given Regex

Example

iex> Randex.stream(~r/(1[0-2]|0[1-9])(:[0-5]\d){2} (A|P)M/) |> Enum.take(10) |> Enum.each(&IO.puts/1)
10:43:51 PM
10:41:31 PM
03:09:55 PM
11:19:50 AM
11:20:41 PM
01:15:54 PM
02:10:04 AM
03:43:47 PM
09:39:03 AM
11:23:46 PM

Check documentation for more information.