I am trying to have a workflow remove blank lines from I can't seem to get the regex replace string just right. As the top line is still a blank no matter what. Here's what I'm doing:
This is to concatenate a composite address from the various fields. And then have the regex replace remove the blank lines. When I first tried this without doing a regex blank line removal, the amount of conditional branching was tremendous, and also introduced lots more blank lines, of which I have no idea how workflow added all those blank lines
The RegEx: (^(\r\n|\n|\r)$)|(^(\r\n|\n|\r))|^[ \t\r\n]*$|^\s*$/gm
Turns into this when the workflow is complete.