Fork me on GitHub

randexp.js by fent

Create random strings that match a given regular expression.

Try it Now

Usage

More Examples

Motivation

Regular expressions are used in every language, every programmer is familiar with them. Regex can be used to easily express complex strings. What better way to generate a random data than with a tool you can easily describe what string you want?

Thanks to String-Random for giving me the idea to make this in the first place and randexp for the nifty little `.gen` syntax.

Install

For node.js install with npm

npm install randexp

For use in browsers, download the minified version from the latest release.

License

MIT

Authors

Roly Fentanes (roly426@gmail.com)