Extract with pattern
Take the parts of a text a pattern describes, e.g. the date, number and amount of "Invoice 42 of 2026-11-16: 99.50"; named parts come back as a Dictionary.
Command in the String toolkit · id ooa.string/extract_pattern · 4 inputs (2 required), 4 outputs
Inputs
| Input | Type | Required | Default | What it is |
|---|---|---|---|---|
| Text | String | Yes | Text to read. | |
| Pattern | String | Yes | A regular expression with bracket groups, named like (?<total>[\d.]+) if you want them by name. | |
| Occurrence | Number | No | 1 | Which match to take: 1 for the first. |
| Ignore case | Boolean | No | false | Upper and lower case alike. |
Outputs
| Output | Type | What it is |
|---|---|---|
| found | Boolean | True when the pattern was found. |
| match | String | The whole match. |
| groups | List | Each bracket group, in order. |
| named | Dictionary | Each named group (?<name>...) by its name. |