in reply to Re^2: Replace all characters inbetween
in thread Replace all characters inbetween

How about the begin and end of the string? I realised that it does not change these, if present.

the problem statement was substitute all occurences of a character (let's call it 'X') that is inbetween two others