Get Text and split the output to get only certain portion of text

Hello,

Imagine i have an Input of “123 - 456”
How would I get an output of the 123 part and also the 456 part?

Split by “-”.
string =“123 - 456”
string.split(“-”)

For better results, use regex with Match and Matches activities.
The input for the activities will be the text in which you want to find the numbers or the pattern. Pattern that describes the search value. in your case pattern should be “\d+”

1 Like