Brackets
Extract text properties in brackets from the input.
Extract text in brackets from the input.
Parameters
| Name | Description | Accepted Values | Default | Required |
|---|---|---|---|---|
| I/O | ||||
input | Name of the input column. | string, integer, array | — | Yes |
output | Name of the output columns. | string, array | — | Yes |
| Options | ||||
find | (Optional) The type of brackets to find (round '()', square '[]', curly '{}', angled '<>'). Default is all brackets. | string, array | "all" | No |
include_brackets | (Optional) Include the brackets in the output. | boolean | false | No |
| Formatting | ||||
output_format | Format of the extract output. | string, null; one of:
| null | No |
char | Character to use when output_format is concatenate. | string | ", " | No |
| Conditions | ||||
if | Condition that determines whether the wrangle runs as a whole. Recipe variables may be referenced with ${variable}. | string | — | No |
where | Filter rows before applying the wrangle using SQL-like criteria, such as column1 = 123 OR column2 = 'abc'. | string | — | No |
where_params | Values used with where for parameterized criteria. Uses SQLite placeholder syntax such as ? or :name. | array, object | — | No |
Examples
wrangles:
- extract.brackets:
input: Data
output: Output
| Data |
|---|
{Hello} |
[Wrangles] |
(!) |
<!> |
| Output |
|---|
| Hello |
| Wrangles |
| ! |
| ! |
Access
| Requirement | Value |
|---|---|
| AI-powered | No |
| Requires WrangleWorks account | No |
| Requires subscription | No |
| Requires external API key | No |
Technical details
| Field | Value |
|---|---|
| Catalog ID | 23 |
| Catalog key | extract.brackets |
| Recipe key | extract.brackets |
| Catalog status | active |
| Lifecycle status | active |
| Recipe Writer eligible | Yes |
| Namespace | extract |
| Documentation group | extract |
| Aliases | None |
| Runtime symbol | wrangles.recipe_wrangles.extract.brackets |
| Legacy UUID | 9b4c15fa-2aaa-40c8-8834-6e835760bee5 |
Sources