Solved how to find and replace a number subjected to a condition

I have a situation where I need to find if a particular number is occurring in a specific location subjected to the occurrence of another number in the same line at another fixed location. If both the above condition is meet , replace the first number with a new value. For example in the below value, I want to replace "2112" to "1551" which is occurring at 13,14,15 &16 location in the line , provided the number occurring at 3,4,5&6th location is 1456.

The information on Computing.Net is the opinions of its users. Such
opinions may not be accurate and they are to be used at your own risk.
Computing.Net cannot verify the validity of the statements made on this
site. Computing.Net and Compnet Ventures, LLC hereby disclaim all responsibility
and liability for the content of Computing.Net and its accuracy.