VBScript » Functions » RTrim

Syntax:
RTrim(String)

The RTrim function removes extra blank spaces only on the right side of a string.

Note that HTML automatically removes extra blank spaces in this view.

Examples

Code:
<% =RTrim(" A sentence with extra spaces on both sides. ") %>
Output:
A sentence with extra spaces on both sides.
Language(s): VBScript

See Also: