cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
Not applicable

How to remove/replace linebreaks from multiline string value?

Jump to solution

I try to use a regular expression to replace linebreaks in a multiline string (an address) with ", " but I cannot get the RegEx action to work. The action is executed but the linebreaks are still there, nothing has changed (when I test the action or even when it is really executed).

The action looks like this:

RegEx Action

Also tried (but only in test mode) to use a linebreak manually entered (not with the expression) but it didn't change anything. And I also tried to do the task by using a "build string" action with the use of the fn-replace function, which lead to the fn-replace text written to the variable - so I would prefer the RegEx-action to work.

Any ideas?

Labels: (2)
0 Kudos
Reply
2 Replies
Nintex Employee
Nintex Employee

Re: How to remove/replace linebreaks from multiline string valu

Jump to solution

Hi Patrick,

Try using this expression in the Pattern (Muster) field of your regular expression:  [\r\n]+

View solution in original post

Reply
Not applicable

Re: How to remove/replace linebreaks from multiline string valu

Jump to solution

Thanks, works like a charm. Btw, this would also work: [{Common:NewLine}]+

Reply