In Visual Studio, when I search within a selection, I want to replace the first instance (or second, third, etc.) of a match per line using regular expressions. How would I
I can be done without a regular expression as well:
Replace = foo with = bar.
= foo
= bar
If a regular expression is needed, one could use:
foo(\d*) = foo(\d*);
Replace with:
foo\1 = bar\2;