I have a string composed by a list of digits as shown:
000000900100103010330200000005677890212126000020
using a single regex, I would like to get many results dividing the original string in substrings of different lengths. I mean something like
00000009 001 001 03 01 033 02 00000005677890212126 00002 0
So I will need to have these different "groups" (I hope it is the correct word to use)
- 00000009
- 001
- 001
- 03
- 01
- 033
- 02
- 00000005677890212126
- 00002
- 0
The length of each element is fixed and will never change. Is it possible?
I have tried:
[0-9]{8}[0-9]{3}[0-9]{3}[0-9]{2}...
but of course it does not work