KeyRoutines
StepFreetext.split

Split text into a list by commas, lines or characters

Split text breaks one piece of text into a list. Split at commas, at line breaks or into characters, then loop over the parts or pick one out.

How it works

  • Choose where to cut: at a separator (a comma by default), at line breaks, or into characters.
  • By default, spaces around each part are trimmed and empty parts are left out; both can be turned off in the advanced options.
  • It returns the list of parts and how many there are.

Routines that use it

Open a list of sites

Split a file of addresses read with Read text file at line breaks and open them with Open URLs.

CSV values

Split a line at commas and take the third value with Get list item.

Clipboard lines

Split copied text into lines and type each one with Type text inside a Repeat.

Settings

SettingWhat it does
TextThe text to split.
AtWhere to cut it.
SeparatorThe text between parts.
TrimadvancedRemove spaces around each part.
Skip emptyadvancedLeave out parts that are empty.

Questions

How do I split text into lines in KeyRoutines?
Use Split text and choose line breaks. Empty lines are skipped unless you turn that off.
Does Split text remove spaces?
Yes, by default it trims the spaces around each part.

Pairs well with

Build this routine in KeyRoutines

Free from the Microsoft Store for Windows 11 and 10. Pro is a one-time upgrade.