live match highlighting, explain mode
// matches appear here
curl -sX POST 'https://api.whittly.dev/v1/regex/test' \
-H 'Authorization: Bearer $WHITTLY_API_KEY' \
-H 'Content-Type: application/json' \
-d '{"pattern":"\\d+","flags":"g","input":"order 42"}'
const res = await fetch('https://api.whittly.dev/v1/regex/test', {
method: 'POST',
headers: {
'Authorization': 'Bearer ' + apiKey,
'Content-Type': 'application/json',
},
body: JSON.stringify({ pattern: "\\d+", flags: "g", input: "order 42" }),
});
const data = await res.json();
const { data } = await axios.post(
'https://api.whittly.dev/v1/regex/test',
{ pattern: "\\d+", flags: "g", input: "order 42" },
{ headers: { Authorization: 'Bearer ' + apiKey } }
);
A regular expression (regex) is a pattern that describes a set of strings. This tester lets you write a pattern, choose flags (global, case-insensitive, multiline, dot-all), and see every match highlighted in the test string in real time — including capture group values.