Data: 1.000000000000002, 0.999999999999999
Expected output: 1.0..2, 0.9..9
Pseudocode in Matlab
inte=1.0000000000000002; % 0.999999999999999
str=num2str(inte,17);
regexprep(str, '[09]{3,}' , 'SOME_lookBehind_thing_here for 0..0/9..9')
System: Linux Ubuntu 16.04