Extract numbers from 1 to 10 from string

Hello,

I looking for a way to extract the numbers from a string in a format like ( - 2 - - - - - - - --) where the " - " can be numbers from 1 to 10, in sequence. Some other possibilities:

( 1 2 - - - 6 - - - 10)
( - 2 3 - 5 - 7 - 9 --)

You can use the Matches activity and click Configure Regular Expression then under RegEx column use Digit and under the Quantifiers column choose “At least one (1 or more)”, the input to the Matches activity should be your string you want to extract from and the output is an/a enumerable/collection, to see each result one by one use a For Each activity