Appearance
Action Edit Text
Transforms, extracts, or converts text and stores the result in a variable.
Inputs: 1 · Outputs: Then
Settings
| Setting | Type | Required | Default | Description |
|---|---|---|---|---|
| Result Variable Name | String | Yes | — | Variable where the modified text is saved. |
| Operation | Select | Yes | Trim Whitespace | Text operation to perform. |
| Text | String | Yes | — | Input text or placeholder to operate on. |
| Extract Type | Select | Yes (Extract) | Characters | Extract by characters, words, before match/index, or after match/index. |
| Delete Type | Select | Yes (Delete) | Characters | Delete by character index/range or word index/range. |
| Match Text | String | No | — | Optional match text for extraction instead of a numeric start index. |
| Index | String | No | — | Zero-based index used by delete/extract operations. |
| Index 2 / Length | String | No | — | End index or character count, depending on operation. |
| Old Text | String | Yes (Replace) | — | Text to search for. |
| New Text | String | No | — | Replacement text. |
| Regex Pattern | String | Yes (Regex) | — | Regular expression pattern used by regex operations. |
| Delimiter | String | Yes (Split) | , | Delimiter used to split text into an array. |
| Prepend Text | String | No | — | Text added before the input. |
| Append Text | String | No | — | Text added after the input. |
| Case Type | Select | Yes (Change Case) | Uppercase | Converts text to uppercase, lowercase, or title case. |
| Convert To | Select | Yes (Convert) | Number | Converts the input to a number or a text string. |
| Match Case | Boolean | No | true | Whether replace/regex matching is case-sensitive. |
| Replace All Matches | Boolean | No | true | Replace every match instead of only the first match. |
Operations
| Operation | What It Does |
|---|---|
trim | Removes leading and trailing whitespace. |
length | Stores the character count. |
delete | Deletes characters or words at the selected index/range. |
extract | Extracts characters, words, text before a point, or text after a point. |
replace | Replaces old text with new text. |
regex | Matches or replaces using a regular expression. |
split | Stores an array split by the delimiter. |
add_affix | Prepends and/or appends text. |
case | Changes the text case. |
convert | Converts to a number or text string. |
Example
Store a lowercase version of the first command argument:
- Text:
%command.arg[1]% - Operation:
Change Case - Case Type:
Lowercase - Result Variable Name:
argument.normalized
