I have the following String
52x10x20x30x40
The string can be extended but with the same pattern and there will be other strings on both sides of it: for example
"Hello something 52x10x20x30x40 bla bla bla"
i want to capture all 2-digits.
I have the following regex
Pattern.compile("(\\d\\d)([x]\\d\\d)+");
But with this regex i only get the following groups:
1: 52
2: x40