0.0
No commit activity in last 3 years
No release in over 3 years
Generate random strings which match a Regular expression
2005
2006
2007
2008
2009
2010
2011
2012
2013
2014
2015
2016
2017
2018
2019
2020
2021
2022
2023
2024
 Dependencies

Development

>= 0
>= 0
 Project Readme

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]+/)
=> abcd@gmail.com

Installation¶ ↑

gem install 'random_string'

or add to Gemfile:

gem 'random_string'

Usage¶ ↑

RandomString.generate(/[a-z]+@[a-z]+\.[a-z]+/)
=> abcd@gmail.com

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 nqtien310@gmail.com.