RandomString

<img src=“https://badge.fury.io/rb/random_string.png” alt=“Gem Version” /> <img src=“https://travis-ci.org/nqtien310/random_string.png?branch=master” alt=“Build Status” />

Ruby library which generates strings which match a regular expression

Examples :

RandomString.generate(/[a-z]+@[a-z]+\.[a-z]+/)
=> [email protected]

Installation

gem install 'random_string'

or add to Gemfile:

gem 'random_string'

Usage

RandomString.generate(/[a-z]+@[a-z]+\.[a-z]+/)
=> [email protected]

Contributing

The random_string/sample_string/data.rb stores the sample data which are used to match again the Regex, this will be updated continously, please feel free update it by adding more sample data and make pull request, I really appreciate your contributions

Copyright © 2013 [email protected].