Delete Line Break from multiple line input


I am using a multiple text input to let my users type a text.
However, I would like to save it into my DB withtout linebreak because it breaks my PDF plugin.

Do you know how do to that ? I tried with find and replace but it doesn’t really cover all posibilites (more than 1 break line) and thought about regex but not sure how to do it.

Thanks in advance

1 Like

Hi there, @Newman… I don’t pretend to be an expert when it comes to regex, but I did some testing, and using find and replace to find this expression and replace it with a space seems to do the trick.


Hope this helps.


1 Like

Hello Mike,

Many thanks it worked well !

1 Like