RTrim
RTrim( value )
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.
Returns
A String which has all of the 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.
Arr(StringV(Fire), StringV(Fire))
[Fire Fire]
["Fire", "Fire"]
[ 'Fire', 'Fire' ]
['Fire', '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!