• With a large amount of replaces this can be done.

    Problem is that the number of replaces is very large.

    So I'll show the concept but not the code, because the code would be large.

    First of all I assum that there are 'strings' which do not occure in the supplied string.

    Here I'll use the strings '^' and 'x', but if these occure replace then with strings which do not occure.

    First replace alle the numbers in the strings with

    1