<p>Example</p>

<p>G76 I0.4779 J270 K7 C90</p>

<p>X20 Y30 </p>

<p>If a number begins with I J K C X Y and it doesn't have a decimal then add decimal.
Above example should look like:</p>

<p>G76 I0.4779 J270 K7. C90.</p>

<p>X20. Y30.</p>

<p>Purpose of this code is to convert CNC code for an older Fanuc OPC controller</p>

```
```
```
Set RegEx = New RegExp
RegEx.Global = True
RegEx.Pattern = "([IJKCXY]\d+)([^\.]|$)"
newVar = RegEx.Replace (oldString, "$1.$2")
```
```
```
Where oldString is the original string, and newVar is the string with the decimals added.