Station AcademyActivity referenceRPAi StationConsultingAurora Academy
Academy/Station Academy/Level 3/Working with text
Level 3 · Automation fundamentals

Working with text

Trim, change case, replace, split, cut and measure text with String Operation, and find patterns with Regex.

Intermediate≈ 15 min (estimate)Windows, macOSWorkflow engine-tested
Before this lesson
Variables
You will learn to
  • Clean up text with String Operation
  • Split text into a list
  • Find or replace a pattern with Regex
Sample files
variables-and-text.station.json

Text from forms, files and screens is rarely tidy. String Operation cleans it; Regex finds patterns.

String Operation

Choose an Operation, give an Input (usually {{variable}}) and a Save To Variable.

OperationExample inputResult
trim" example ltd "example ltd
uppercase / lowercaseexample ltdEXAMPLE LTD
replace (Find, Replace With)example ltd, ltd → Limitedexample Limited
lengthexample ltd11
substring (Start, Length)INV-2026-0042, 4, 42026
concat (Append)INV- + 0042INV-0042
split (Delimiter)apple,pear,plum and ,a list of three items

Regex

A regular expression describes a pattern. Regex can test (true or false), match the first occurrence, match_all occurrences, or replace.

GoalPattern
Digits only\d+
An invoice number like INV-2026-0042INV-\d{4}-\d{4}
The file extension[^.]+$

The sample

variables-and-text.station.json trims a customer name, changes it to capitals, counts the characters, replaces a word and calculates a total. Import it and run it.

Activities in this lesson

String Operation · Regex · Log

Saved only in this browser.

Workflow engine-tested. The sample workflow was executed with the macOS Station engine (StationCore) without the user interface. UI steps are source-verified. Written against RPAi Station for macOS 0.1.0 (1) (RPAi_Station_2.0 @ port/macos 9864e96) and the Windows source (RPAi_Station_2.0 @ codex/native-station e68f16d). Reviewed 2026-11-30. UI labels may differ slightly in other versions; see versions and changes.