Regex Test API
https://api.findutils.com/api/tools/regex-test/execute Test a JavaScript regular expression against input text. Returns every match (up to 1000) with its index, its numbered capture groups (captures: $1, $2, …, null for a group that did not take part) and its named groups. With replace, also returns the text after String.prototype.replace, which understands $1, $<name>, $&, $` , $' and $$ and replaces every match only when the g flag is set. Input past 50,000 characters is cut and marked truncated. Patterns with nested quantifiers are refused.
Request body
application/json-
pattern
string required
Regex pattern (max 500 chars).
-
input
string required
Text to search.
-
flags
string optional
Regex flags (g/i/m/s/u/y). Defaults to "g". Default
"g". -
replace
string optional
Optional replacement string, e.g. "$2-$1" or "$<year>". When given, the result includes replaced.
Example arguments
Verified{
"pattern": "^[a-z]+$",
"text": "hello"
} More Developer tools
- A2ui Basic Catalog Returns the authoritative basic-catalog JSON Schema (components, functions, theme) for the requested A2UI version.
- A2ui Diff Computes a structural diff between two A2UI JSONL payloads: surfaces added/removed, components added/removed/changed (by id), data-model…
- A2ui Examples Returns one or more canonical A2UI JSONL examples matching a pattern (form, list, wizard, modal, chat, dashboard, checkout, typeahead…
- A2ui Prompt Generates a drop-in LLM system prompt that teaches the model to output valid A2UI JSONL: includes the basic-catalog component / function…
- A2ui Spec Returns A2UI protocol documentation for a given spec version and section.
- A2ui Validate Validates a JSONL A2UI payload against the basic catalog (or a custom catalog) and returns any errors, warnings, or info messages…