I have a field of type text that has a value like
'hello \nworld \n'
I would like to remove the trailing blanks between the last characterand the newline. I would like to use replace with a regx like /[ ]+\n/\n/ but it does not seem to work.