s/\d+$/ $& ^ 1 /er
A neat solution, of course, but unfortunately it doesn't meet the OP's specs: .5 becomes .4 and .6 becomes .7.
In reply to Re^2: Need to calculate IP address
by haukex
in thread Need to calculate IP address
by ddrew78
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |