Still not very sure of what you exactly want or need, but let's give a try, based on what you wrote here and in your sample.
Receiving some string respecting the following:
- Starting with a double-quote enclosed token.
- Followed by a colon, occasionally surrounded by any number of spacing characters.
- Followed on the right part by a suit of colon separated tokens.
- One of those being composed of numbers only.
Trying to replace that input by only:
- Double-quote enclosed token.
- Followed by a colon, surrounded spaces kept.
- Immediately followed by the number only token.
You could then use the following pattern to get your match: ^(?<token>"[^"]+"\s*:\s*)(?:\d*[^\d:][^:]*:)*(?<number>\d+)(?::[^:]*)*$
.
The following should then be used to replace: $1$2
.
Demo here.
That may be simplified or adapted when knowing additional rules.