I have the following string:
Weight :: 1390 - 1430 Sizes :: 1450 - 1480 - 1530 - 1600 - 1700 - 1800 Min :: 1350
I would like to get all values of size. So in this example it would be 1450
,1480
,1530
,1600
,1700
,1800
. The amount of available sizes is variable. It can be between 2 - 10 times.
I have already tried the following pattern:
(?i)sizes :: *(?=.*)(?:(\d*)( - )*) .*min
But then I only get the first value (1450
).
If I use this pattern, I have all available values in group1
. But then I'm stuck.
(?i)sizes :: *(.*) .*min