4

I actually use the Field Calculator "replace" formula that works very well but I have some '\' caracters in my field that I cannot replace. ex : '\naninana' and I want to keep only 'naninana'.

underdark
  • 84,148
  • 21
  • 231
  • 413
Cartophyl
  • 43
  • 4

1 Answers1

8

If you want to remove a \ in a field, you can escape it as in:

replace(fieldname, '\\', '')

Or if you wanted to remove \n:

replace(fieldname, '\\n', '')
larsks
  • 1,256
  • 1
  • 11
  • 24