rTrim()
returns the original string with leading whitespace removed.
Syntax: rTrim(original)
Returns: A String.
Arguments
Name | Description |
original | An expression that returns a string. |
Example
RETURN rTrim(" Hello, World! ")
The value returned will be a string that will be similar to the original string except all the trailing whitespace would have been removed. Hence the returned string will be ” Hello, World!”.
Considerations
rTrim(null)
returnsnull
.
Example
RETURN rTrim(" Cypher Tutorials!")
Returns the following Result
rTrim(" Cypher Tutorials!") |
" Cypher Tutorials!" |
Example
RETURN rTrim("Cypher Tutorials! ")
Returns the following Result
rTrim("Cypher Tutorials! ") |
"Cypher Tutorials!" |
Example
RETURN rTrim(" Cypher Tutorials! ")
Returns the following Result
rTrim(" Cypher Tutorials! ") |
" Cypher Tutorials!" |
Example
RETURN rTrim("Cypher Tutorials!")
Returns the following Result
rTrim("Cypher Tutorials!") |
"Cypher Tutorials!" |
Example
RETURN rTrim(null)
Returns the following Result
rTrim(null) |
null |
Note– rTrim(null)
returns null
.