Simple Addition for newbie

General discussions about Advanced Find and Replace
Post Reply
RobRodgers
Posts: 1
Joined: Wed Mar 31, 2010 10:50 am

Simple Addition for newbie

Post by RobRodgers »

Hi all,
I need an expression for searching through code and making a simple addition.

Sample code:
G2X22.22Y10.9Y6.5716
G2Y5.86Y8.38
G2X19.47Y2.91Y10.1884
G2X3.53Y14.8695
G2X0.78Y5.86Y10.1884

I need to add 2.5 to all X values so X22.22 becomes X24.72 and X19.47 becomes X21.97 etc.

How can I do this? There dont seem to be any examples in the help.
Many thanks in advance.

Post Reply