Free · Make strings that match a pattern

Regex Example Generator

Enter a regular expression and make clear example strings that match it.

  • Real randexp.js generation
  • Private in your browser
  • Safe count and repeat caps

Generate examples

Enter a pattern without / slash marks. Samples are generated locally with safe count and repeat caps.

1
Set the pattern16 / 400 characters
Private local generatorrandexp.js 0.5.3 · no upload
2
Use the samplesReady when you are
Your samples will appear here

Nothing is uploaded. A safety cap keeps open-ended repeats and large batches under control.

Three simple steps

How to use it

  1. Enter a regular expression without slash marks.
  2. Choose how many examples to make.
  3. Copy or download the matching strings.

Your pattern stays on this device

randexp.js makes every string inside this browser tab. Bookify does not upload or save the pattern, seed, or samples. Generation is capped, and random examples do not replace full validation tests.