admin管理员组

文章数量:1313086

I need all lines starting with G303 to have the W removed , add a ( and a 3 in front of each digit before the L and end in a )

Sometimes there may be up to 3 digits on the line.

O00000001(MG3-231:01395-00011-WAT REV 119P7                       )          
G300U0(414C554D494E554D)Z4.A0B1
G379U1A0X10.1Y0.1E0.Z-21.6542F4.8
521E0.Z-19.8045F5.2
G305U4T14D3.S4P1
G420U4
N1M9
N2G91&G28Z0.
N3G28A0.Y0.S0M0
G421
G382U5D0.
G303U6W2L1F0 = G303U6(32)L1F0
G382U7D180.
G303U8W32L1F0 = G303U6(3332)L1F0
G301U9B1
M30

Right now I am using ^(G303.*)W replace with $1\(3 and later just search for G303 and manually editing the lines.

Even if I have to do 2 operations , that would be better.

本文标签: replaceModify text file in NotepadStack Overflow