I have a requirement where I need to replace the 'X' in the string.
EX: 1. ABCDXXX
The output should be
This mean I need to replace all the X which comes last in the string. There is a possiblity that X may come in between like Ex 2.
So that X should remain same.
What pattern I can give for this Or any other solution.