Get Numbers from Input

3️⃣

Returns numbers from the previous action’s output.

Score
Type
InterActivity
Expertise
4/5
Type
InterActivity
Expertise

Action Information

Parameters

Get numbers from [Input]

Input

Currency Amounts, File Sizes, Workout samples, Time intervals, Measurements, Booleans, Dates, Text, Health samples, Blood pressures, Numbers

Result

Numbers

Comments

“Extracts” the numbers from any data that includes unit types or measurements.

Use this to grab only the numerical values from any input, ignoring any other text.

If multiple numbers are found, passed out as a List of values.

Similar to Match Text looking for number values, but doesn’t require dealing with regular expressions.

Shortcuts Using This

Works Well With

?
Count
Counts the number of items, characters, words, sentences, or lines passed as input.

Note (from Apple, for real)
This is just like the Count in Sesame Street, but instead of a vampire, it’s a Shortcuts action.
?
Get Clipboard
Passes the contents of the clipboard to the next action.
✂️
Copy to Clipboard
Copies the result of the last action to the clipboard.
Wait
Waits for the specified number of seconds before continuing with the next action.

Details

Type
Interactivity
Expertise Needed
Matthew's Score
4/5
Category
Date Added to Shortcuts
26/03/2019
Identifier
is.workflow.actions.detect.number