What I want to do is say I have the multi-line string:
1.10...
1.11...
1.12...
1.13...
...
1.18...
I would like to match 1.1([0-9]) and replace with 1.1(\1+1) if \1 is the captured digit from the matched pattern and (1+1) in the replace pattern makes 2, e.g. 1.11 is replaced by 1.12, 1.12 by 1.13 and so on. Is there such a feature in any regex engine/implementation that can do this sort of transformation of captured groups? I am specifically working with sed under Red Hat. Can I do it with any other tool?
perl -pe 's/^\d+\.\K(\d+)/$1 + 1/ge'1.19?