Socrata was acquired by Tyler Technologies in 2018 and is now the Data and Insights division of Tyler. The platform is still powered by the same software formerly known as Socrata but you will see references to Data & Insights going forward.

trim_trailing

Function: trim_trailing
  trim characters off the end of a string

Examples:

  trim_trailing('    SOMETHING    ', ' ')
  -- Result: "    SOMETHING"

  trim_trailing(',a,b,c,d,', ',')
  -- Result: ",a,b,c,d"

  trim_trailing('    SOMETHING    ', 'nope')
  -- Result: "    SOMETHING    "




Signatures
text, text -> text