Quantcast
Channel: Microsoft Dynamics CRM Forum - Recent Threads
Viewing all articles
Browse latest Browse all 55831

Remove blank lines from multi-line field using Jason Lattimer's Regex util

$
0
0

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.


Viewing all articles
Browse latest Browse all 55831


<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>