Developer Tools
Regex Toolkit
regex-toolkit
Use Regex Toolkit through the Zavilo SDK. Check input limits, parameters, output and supported modes below.
H · Headless
Quick actions
Input files 0Output files 0
Input
Accepted input contract for this Tool.
| Kind | data |
|---|---|
| File count | 0 – 0 |
| Accepted MIME types | None |
Parameters
Pass these values through request.options.
| Parameter | Type | Required | Default | Allowed / Range | Description |
|---|---|---|---|---|---|
input |
string | Optional | — | — | Text input. |
pattern |
string | Required | — | — | Regex pattern. |
flags |
string | Optional | g |
— | Regex flags. |
action |
enum | Optional | find |
find | replace | Find or replace. |
replacement |
string | Optional | — | — | Replacement text. |
Output
Result contract returned after successful processing.
| Type | data |
|---|---|
| File count | 0 – 0 |
| MIME types | None |
| Metadata | matches |
| ZIP archive | No |
Basic usage
Choose a supported integration mode and copy the generated starter code.
Headless
const result = await client.run("regex-toolkit", {
options: { pattern: "value", flags: "g", action: "find" }
});
console.log(result.files, result.data, result.metadata);
Embedded
await client.mount({ tool: "regex-toolkit", target: "#zavilo-tool", mode: "embedded" });
This page is generated from the SDK Tool Definition used by the runtime.