Removing new line character from spark dataframe column

ShriS1221
New Contributor II

I have to remove new line character from entire column of a dataframe , I tried with regex_replace but its not working.

Help me on this.​