How do I insert ‘\’+‘n’ using regex replacement in MSVS 2012+ editor (and .NET?)
问题 In the editor of Visual Studio 2013, which I understand is very similar to 2012 and allegedly uses .NET regexes, I cannot get the replacement string to insert a backslash and an ‘ n ’ — is that even possible? I wish to insert ‘ \n ’ after the first ‘ " ’ on some (but not all) lines of a C programme, i.e. make the string literals start with a new line. Obviously the expression to find is ‘ ^([^"]*)" ’, and the replacement is … what? ‘ $1" ’ + magic + ‘ n ’, where magic is whatever inserts a