Skip to main content

Text

Reads the value as text and applies an Operation to it. A number is read as it is written, such as 3 rather than 3.0, and true and false as themselves. 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.

The Text reference describes each field, in the same words its Guide icon shows in the tool.

Change Case​

Writes the text in another Case: 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, so BREAKING NEWS becomes Breaking News. Produces text.

Clean Whitespace​

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. Non-breaking spaces count as whitespace. Produces text.

Replace​

Replaces Find with Replace With, every match or, with First Match Only, the first. Match As Text finds the text exactly; Regular Expression reads Find as a regular expression, and Replace With can name its groups, such as $1. Both accept variable references. Produces text.

Extract Match​

Picks out what a regular expression Pattern matches, such as the number in Fixes #482 with a Pattern of #(\d+) and a Group of 1. With All Matches, every match, as a list. Text with no match produces null, or an empty list. Produces text, or a list of text.

Truncate​

Cuts the text to a Max Length of characters or words, adding Suffix, … unless you change it, where it was cut. Counting characters, the cut falls between words where there is room for one, and the suffix counts toward the length. Text already short enough is unchanged. Produces text.

Add Text​

Adds a Prefix before the text and a Suffix after it, such as # before a channel name. Both accept variable references. Produces text.

Split​

Splits the text into a list at a Separator: a comma, a semicolon, a line break, whitespace, or a Custom Separator of your own, as written. Each item is trimmed and empty ones are dropped, unless you turn on Keep Whitespace or Keep Empty Items. Produces a list of text.

Convert Markup​

HTML to Plain Text flattens HTML, such as a rich-text field's, 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. Produces text.

Encode or Decode​

Percent-encodes text for a URL, encodes it as Base64, or escapes it for HTML, or reads any of these back. Text that can't be read back fails the step. Produces text.

Measure​

Counts the text's characters, words, or lines. An emoji counts as one character. Produces a number.

Regular expressions​

Regular expressions in Replace and Extract Match run on RE2/J, as a condition's Matches Regex does, so no pattern can take longer than the text it reads warrants.

Was this page helpful?

This site is protected by reCAPTCHA and the Google Privacy Policy and Terms of Service apply.