s/(?:[0-9]+\.){3}\K([0-9]+)/$1-1/eg; [download]
In reply to Re^2: decrementing numbers by JavaFan in thread decrementing numbers by ddrew78