Skip to content
faker.tools
All 79

Plate IV · Developer, API & Database Seeding Utilities

Regex Data Generator

Strings that match your pattern, verified against it.

#ValueMatches
1XS-2472-h9dm21true
2VU-3902-srufaltrue
3GY-9711-b0eez5true
4GB-1853-k7bh7ltrue
5OH-3756-hcvkxstrue
6QB-2843-8b38qptrue
7IG-2102-wd559gtrue
8PS-3386-igoncntrue
9FO-9971-6y6g6dtrue
10YM-6053-wb8qq1true
10 rows · 329 BGenerated in your browser · Regex Data Generator

You have a validation regex and you need a hundred strings that satisfy it. Paste the pattern, get the strings — and each one is tested against your own regex before it is shown, so you can see immediately if the generator and your pattern disagree.

What you can control

  • Supports literals, character classes, ranges, escapes, groups, alternation and all the standard quantifiers.
  • The verification column runs your pattern against each result, so a mismatch is visible rather than silent.
  • Six presets covering the patterns people most often need: order codes, hex tokens, plates, semver, postcodes.
  • Unsupported constructs produce a clear message instead of output that quietly fails to match.

What this is not

Look-around, back-references and unicode property escapes are not supported — they describe constraints that cannot be satisfied by generating left to right. Unbounded quantifiers cap at six repetitions.

Questions

Why is look-ahead unsupported?

Look-around asserts something about text the generator has not produced yet. Satisfying it needs backtracking search rather than generation, which is a much larger tool.

How many repetitions does + produce?

Between one and six. An unbounded quantifier has no natural maximum, so it is capped at a length that stays readable. Use {1,20} if you want more.

What does the Matches column mean?

The result was tested against your pattern anchored at both ends. False means the generator's interpretation differs from your engine's — usually an unsupported construct.

Next in Developer

All 11