Preparing the page
Public context is loading before any interactive tool code.
Preparing the page
Public context is loading before any interactive tool code.
Generate one of six bounded JavaScript-compatible patterns, then see exactly which sample strings match in your browser.
Your checked result will appear here.
A reviewed recipe enters the matching engine unchanged. Test strings leave as explicit matches or non-matches, so the pattern's actual boundary is visible.

These patterns are intentionally narrower than an open-ended natural-language generator. Choose a recipe only when its documented boundary matches your data.
lowercase words separated by single hyphensTest accepted and rejected samples from the real destination before deployment.
a signed base-10 integer without extra leading zeroesTest accepted and rejected samples from the real destination before deployment.
a signed integer or decimal using a periodTest accepted and rejected samples from the real destination before deployment.
a hash followed by exactly six hexadecimal digitsTest accepted and rejected samples from the real destination before deployment.
the YYYY-MM-DD shape, not real calendar validityTest accepted and rejected samples from the real destination before deployment.
an ASCII letter or underscore followed by letters, digits or underscoresTest accepted and rejected samples from the real destination before deployment.
The anchors require the entire input to conform. Mixed case and a space make the middle sample fail; the two lowercase hyphenated samples pass.
{
"recipe": "slug",
"samples": [
"mcxai-tools",
"Bad Slug",
"docs-v2"
]
}/^[a-z0-9]+(?:-[a-z0-9]+)*$/ Lowercase ASCII letters and digits separated by single hyphens. MATCH mcxai-tools NO MATCH Bad Slug MATCH docs-v2
emailEmail address rules depend on product policy and internationalization choices, so this bounded version does not improvise one.
A regex is code with dialect-specific behavior. The local result proves only what the current JavaScript engine did with the supplied samples.
The supplied recipes start with ^ and end with $, so they test a full string rather than a substring.
Try empty strings, very long strings, Unicode, punctuation, leading spaces and near-misses relevant to the field.
Port the pattern carefully when the destination uses PCRE, RE2, .NET, Java or a database-specific implementation.
A shape match cannot confirm that a date exists, an identifier is available or a value is authorized.
Keep business rules, canonicalization and security controls outside the pattern. Match results should remain one input to validation.