Showing posts with label plus sign at the end of string. Show all posts
Showing posts with label plus sign at the end of string. Show all posts

Friday, February 22, 2013

Refactoring of plus sign of huge string concatenations

2 Find/Replace for huge build in SQL string with "+" at the end of the line - to do it in 5 seconds.

"\+$" --> ""
"\t"" --> "\t+ ""

from:
value = "string1 " +
"string2 ";

to:
value = "string1 "
+ "string2 ";