Regular Expressions

While Mockaroo supports a ton of built-in datatypes, it doesn't have everything and probably never will.  Fortunately, you can use the powerful Regular Expression datatype to generate random data in almost  any format.

Use Case: Currencies

Let's say you want to generate random prices between 1 and 100 in different currencies that look like:

10,26 AUD
3,99 EUR
100,00 CNY
...

You can generate data like this by first creating a Currency Code field called "currency", then a Regular Expression field called "price" with the following pattern:

\d{1,3},\d{2} {{currency}}

By combining Mockaroo's built-in datatypes with your own regular expressions, you can mock virtually any type of data!