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
| Setting | What it does |
|---|---|
| Text | The text to split. |
| At | Where to cut it. |
| Separator | The text between parts. |
| Trimadvanced | Remove spaces around each part. |
| Skip emptyadvanced | Leave 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.