I want to use regex to do two things:
1.Comment all the strings that call the method .EnterText:
myField1.EnterText( a, 1000 );
myField2.EnterText( b, 3000 );
I have lots of those lines. How can I use regex to achieve something like this in Visual Studio:
//myField1.EnterText( a, 1000 );
//myField2.EnterText( b, 3000 );
2.After commenting those lines I want to copy them and change the calls in the following way:
myField1.Value = a;
So eventually I want to have something like this:
//myField1.EnterText( a, 1000 );
myField1.Value = a;
//myField2.EnterText( b, 3000 );
myField2.Value = b;