I am trying to find some patterns of coding style in my solution. The use case is that I have to replace all the string concatenation with StringBuilder in razor and find all string concatenation in JavaScript. I am finding it very difficult to get all such code lines which have string concatenation in the following 2 ways.
1) str = str+str2+str3+"str4 " etc;
2) str+=str2+str3+"str4 " etc;
I tried using finding tool of VS 2013 and searched with character +, I got hell lot of lines. Please help me the reg ex pattern for above 2 styles of code lines, so at least number of lines will reduce. I am finding it difficult to get Reg Ex for above 2 styles of code.
strandstr2?+=there could be only one value on right hand side.str+=str2+str3+"str4 "is invalid.