Was this page helpful?

String.TrimEnd

    Table of contents
    1. 1. Usage Restrictions
    2. 2. Parameters
    3. 3. Result
    4. 4. Samples
    string.TrimEnd(text : str) : str
    

    Remove whitespace from the end of the string.

    Usage Restrictions

    1.9.1 or later

    Parameters

    Name Type Description
    text
    str The string value.

    Result

    A string of the original, but with whitespace at the end removed.

    Samples


    Output

    To trim a string at the end:

    {{ string.trimend("   Hello World   ") }} 

    Hello World

    Was this page helpful?
    Tag page
    You must login to post a comment.

    Copyright © 2011 MindTouch, Inc. Powered by