Replacing all breaks in textfield for spaces
How can I replace all breaks in a textfield for spaces. I guess I have to use the function replaceAll(text, regex, outcome). I'm not that great with regex though, could anyone help me with his one?
You should use the following microflow expression:
replaceAll($Entity/StringAttr, '\s+', ' ')
This will transform texts such as 'Some text.
Some more text.'
'Some text. Some more text.'
Benny van Reeven
The regex will also take literal strings, so just replacing all '\n' (without quotation marks) should work.
Sebastiaan van den Broek