Magistross
Your example doesn't work as the OP requires.
Using his string as an example, feeding the following into your .capx - "112, 113, 112, 114, 113, 112," - would produce "12, 13, 12, 14, 13, 12," which is obviously not correct.
Unfortunately, I'm useless at RegEx so am unable to remedy.