Text
Reads the value as text and applies an operation to it. A list has each of its items worked on in turn, and an object fails the step, since it has no single way to read as text.
Operation
What to do to the text.
- Add Text: Adds text before or after the value, such as
#before a channel name. - Change Case: Writes the text in another case.
- Clean Whitespace: Tidies the whitespace in the text. Non-breaking spaces count as whitespace.
- Convert Markup: Converts the text between HTML, Markdown and plain text.
- Encode or Decode: Encodes the text for a URL, Base64 or HTML, or reads any of these back.
- Extract Match: Picks out what a regular expression matches, such as the number in
Fixes #482. - Measure: Counts the text's characters, words or lines, producing a number.
- Replace: Replaces text, or what a regular expression matches, with other text.
- Split: Splits the text into a list at a separator.
- Truncate: Cuts the text to a length. Text already short enough is unchanged.
Operation › Add Text
Adds text before or after the value, such as # before a channel name.
Prefix
Text added before the value. Accepts a variable reference.
Accepts variables
Suffix
Text added after the value. Accepts a variable reference.
Accepts variables
Operation › Change Case
Writes the text in another case.
Case
The case to write: UPPERCASE, lowercase, Title Case, Sentence case, camelCase, snake_case, kebab-case, or Slug, as Brightspot writes a URL's slug. Title Case and Sentence case lowercase the letters they don't capitalize.
Required
Operation › Clean Whitespace
Tidies the whitespace in the text. Non-breaking spaces count as whitespace.
Cleanup
How much to clean: Trim Ends removes whitespace from both ends, Collapse Spaces also turns each run of whitespace inside into one space, and Remove All Spaces removes every whitespace character.
Required
Operation › Convert Markup
Converts the text between HTML, Markdown and plain text.
Conversion
HTML to Plain Text flattens HTML, keeping a line break after each paragraph, heading and list item. Markdown to HTML renders Markdown, leaving out anything that could run a script. Plain Text to HTML escapes the text and makes each block separated by a blank line a paragraph.
Required
Operation › Encode or Decode
Encodes the text for a URL, Base64 or HTML, or reads any of these back.
Encoding
What to do: percent-encode for a URL, encode as Base64, or escape for HTML, or decode each of these. Text that can't be decoded fails the step.
Required
Operation › Extract Match
Picks out what a regular expression matches, such as the number in Fixes #482.
Pattern
The regular expression, such as #(\d+), run on RE2/J.
Required
Group
The numbered group to pick out, such as 1 for the first. Leave it blank for the whole match.
All Matches
Whether to pick out every match, as a list, rather than the first alone.
Ignore Case
Whether to match regardless of case.
Operation › Measure
Counts the text's characters, words or lines, producing a number.
Count
What to count. An emoji counts as one character.
Required
Operation › Replace
Replaces text, or what a regular expression matches, with other text.
Find
What to replace: the text itself, or, with Match As set to Regular Expression, a pattern. Accepts a variable reference.
Required · Accepts variables
Replace With
What to put in its place. With a regular expression it can name the pattern's groups, such as $1. Accepts a variable reference. Leave it blank to remove what was found.
Accepts variables
Match As
Text finds Find exactly as written; Regular Expression reads it as a pattern, run on RE2/J so it can never take longer than the text warrants.
Required
First Match Only
Whether to replace only the first match rather than every one.
Ignore Case
Whether to match regardless of case.
Operation › Split
Splits the text into a list at a separator.
Separator
Where to split: at a comma, a semicolon, a line break, whitespace, or a Custom Separator of your own.
Required
Custom Separator
The text to split at, as written, when Separator is Custom.
Keep Whitespace
Whether to keep the whitespace around each item rather than trimming it.
Keep Empty Items
Whether to keep the empty items two adjacent separators leave rather than dropping them.
Operation › Truncate
Cuts the text to a length. Text already short enough is unchanged.
Max Length
The most characters or words to keep. Counting characters, the suffix counts toward it.
Required
Unit
Whether Max Length counts Characters or Words. Counting characters, the cut falls between words where there is room for one.
Required
Suffix
Added where the text was cut, … unless you change it. Leave it blank to add nothing.