Logo Anfibia Reactor ™ - User Guide
Copyright © 2013 Anfibia Software. All Rights Reserved.
www.anfibia-soft.com
Plugins : API : rtrim

Summary

Removes trailing blanks from a string.

Syntax

local trimmedString = rtrim(string)

Parameters

String : text string.

Returns

String : string with the trailing spaces removed.

Description

Removes blank and control characters (such as line feed) from the end of a string.

Examples

local paddedString = ' letters  '
print('[' .. paddedString .. ']')
print('[' .. rtrim( paddedString ) .. ']')

[ letters  ]
[ letters]

 

See Also

ltrim
trim