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
As simple as this in Visual Studio 2019 Find/Replace.
I needed to replace FORTRAN IO format string to C++ format and used sub-expression and numbers of regexp.
Example: find: "f9.8", "f18.3", in line and replace with %9.8f, %18.3f
reg exp: Find = ( f)(\d+.\d+) Replace = %$2f