Description
We want to multiply every number by 2, including integers and floating numbers, treating 12.34 as a floating number, but ignoring those look like 1.2.3, or 140.113.17.154.
Raw Input
A=1 B=3.5 C=1.2.3 D=-18.3 E=5.6.7.8
Desired Output
A=2 B=7 C=1.2.3 D=-36.6 E=5.6.7.8
Script and Comments
Script1 [perl]
[ 1] while(<>)
[ 2] { s/(?<!\.)(\d+(\.\d+)?)(?!\.)/$1 * 2/ge; }
[ 3] print;