Hello I have a string like following
Some text here -
~XY*901*000000001~MLC*~XY*901*000000005~MLC*~XY*901*0000000010~MLC*
Some text here
I want to have it like -
Some text here
~XY*901*000000001~MLC*~XY*901*000000002~MLC*~XY*901*000000003~MLC*
Some text here
Explanation: everything in between ~XY*901*
and ~MLC*
should be incremented by one starting from 1.
How to achieve it using Regex Match Evaluator?