Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/ananthakumaran/randex
An Elixir library to generate random strings that match the given Regex
https://github.com/ananthakumaran/randex
Last synced: 28 days ago
JSON representation
An Elixir library to generate random strings that match the given Regex
- Host: GitHub
- URL: https://github.com/ananthakumaran/randex
- Owner: ananthakumaran
- License: mit
- Created: 2018-09-08T17:44:49.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2020-12-25T05:38:56.000Z (almost 4 years ago)
- Last Synced: 2024-09-21T10:43:25.257Z (about 2 months ago)
- Language: Elixir
- Homepage:
- Size: 62.5 KB
- Stars: 17
- Watchers: 4
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE
Awesome Lists containing this project
README
# Randex
[![Hex.pm](https://img.shields.io/hexpm/v/randex.svg)](https://hex.pm/packages/randex)
A library to generate random strings that match the given Regex
## Example
```elixir
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](https://hexdocs.pm/randex) for more information.