Regex Sample String Generator
Generate random strings that actually match a JavaScript regular expression, plus near-miss counterexamples that almost match but don’t — useful for test fixtures, validating a pattern, or just seeing what it accepts.
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Body
Regular Expression Pattern
i — Ignore case
m — Multiline (^ and $ match line boundaries)
s — Dot matches newline
u — Unicode mode
Number of samples
1 <= x <= 20Max repeats for open-ended quantifiers (*, +, {n,})
1 <= x <= 20Also show near-miss counterexamples
Seed (optional)
Response
Tool output
The tool's slug, echoing the {slug} in the request path.
Output-contract version for this tool.
Credits this call consumed, after any settlement refund. 0 when metering is disabled.
Credits left in the current monthly allowance, or null when metering is disabled.
Correlation id, also sent as x-request-id.