Getting text before first and second occurrence

Hey @Short

We can use Regex to obtain each value :slight_smile: Take a look here for a preview.

I have created a sample workflow for you to download and review.
Main.xaml (6.0 KB)
Output pane from workflow:
image

The Regex pattern I created will match both instances of 15.8 and 11.6.
15.8 will be match 1.
11.6 will be match 2.

I then used assigned the result to a new string variable for each result.

As long as there are only ever two values in your input text then this will work.

If you want to learn Regex, then take a look here at my Regex Megapost.

Hopefully this helps :blush:

1 Like