I had the same problem, and my solution was to use two regular expressions: the first to match the entire group of interest to me, and the second to parse subgroups. For example, in this case, I would start with this:
VALUE((\s\d+)+)
This should lead to three matches: [0] the entire line, [1] material after the value [2] of the last space + value.
[0] and [2] can be ignored, and then [1] can be used with the following:
\s(\d+)
Note: these regular expressions have not been tested, hope you get this idea.
The reason Greg answer doesn't work for me is because the second part of the parsing is more complicated, and not just some numbers separated by a space.
However, I would honestly go with Greg's decision on this issue (this is probably more efficient).
I am just writing this answer if someone is looking for a more complex solution as I needed.
Christian Nov 12 '17 at 16:14 2017-11-12 16:14
source share