What does this regex tester do?
It builds a regular expression from your pattern and flags, runs it against test text, and shows matched values, positions, and capture groups.
Test regular expressions against sample validation text and fixture data.
Enter a JavaScript regex pattern, flags, and sample text.
Matches and capture groups appear after a short delay.
{
"count": 2,
"matches": [
{
"match": "user_1048",
"index": 0,
"groups": [
"user"
]
},
{
"match": "order_7721",
"index": 10,
"groups": [
"order"
]
}
]
}It builds a regular expression from your pattern and flags, runs it against test text, and shows matched values, positions, and capture groups.
Regexes are common for validating IDs, slugs, emails, logs, and generated fixture fields before they are used in tests.
Use JavaScript RegExp flags such as g, i, m, s, u, v, and y. The tester adds global matching automatically so all matches can be listed.
Paste JSON to verify that generated mock data is valid before using it in tests, demos, or API fixtures.
Generate UUIDs for mock users, orders, products, records, and other fixture identifiers.
Encode and decode URL components for query strings, redirects, API debugging, and copied request values.