FQL v4 will be decommissioned on June 30, 2025. Ensure that you complete your migration from FQL v4 to FQL v10 by that date. For more details, review the migration guide. Contact support@fauna.com with any questions. |
RTrim
This reference topic applies to FQL v4. Go to this page for the latest FQL v10 reference topics. |
RTrim( value )
rtrim( value )
RTrim( value )
RTrim( value )
RTrim( value )
Description
The RTrim
function removes all trailing white spaces, tabs, and
new lines from the end of a string.
Parameters
Parameter | Type | Definition and Requirements |
---|---|---|
|
String |
The String which should have its trailing white spaces, tabs, and new lines removed. |
Examples
The following query executes an array of independent RTrim
operations
and returns the results in an array. The result array position matches
the execution array position. The individual operations are:
-
The string `Fire ` is processed, removing the trailing space. The result string "Fire" is placed in the top position of the result array.
-
The string
Fire\n\n\t\t
, which contains embedded tabs, new lines, and spaces at the end of the string, is processed. The result stringFire
is placed in the second position of the result array.
[ 'Fire', 'Fire' ]
['Fire', 'Fire']
[Fire Fire]
Arr(StringV(Fire), StringV(Fire))
[ 'Fire', 'Fire' ]
Is this article helpful?
Tell Fauna how the article can be improved:
Visit Fauna's forums
or email docs@fauna.com
Thank you for your feedback!