s/(\S+)%/$1*0.01/eg #e = evaluate right-side as expression, g = global, i.e. change all percent-values found, not just the first