trimleft(
trimleft(
TEXT
,
COUNT
)

The trimleft( function removes one or more characters from the left edge of the text.

Parameters

This function has two parameters:

text – is the original text.

count – is the number of characters to remove from the beginning of the text.

Description

This function removes one or more characters from the beginning (left edge) of the text.

    trimleft("abcdef",1) ☞ bcdef
    trimleft("abcdef",2) ☞ cdef
    trimleft("abcdef",12) ☞

If you want to trim characters from the right end of the text, use the trim( function.

Note: This function is equivalent to:

    text[count,-1]

See Also

- after( -- extracts all text after a specified tag (sequence of characters).
- before( -- extracts all text before a specified tag (sequence of characters). If the tag doesn't exist the function returns "".
- extract( -- extracts a single data item from a text array, and can also be used to count the number of items in the array.
- firstline( -- extracts the first line from the text.
- firstword( -- extracts the first word from the text.
- lastline( -- extracts the last line from the text.
- lastword( -- extracts the last word from the text.
- left( -- extracts characters from the left edge of the text.
- nthline( -- extracts the nth line from the text.
- nthword( -- extracts a word from the middle of the text.
- randomline( -- returns a random line from multiple lines of text.
- randomword( -- returns a random word from a list of words.
- right( -- extracts characters from the right edge of the text.
- textafter( -- extracts the text after the tag.
- textbefore( -- extracts the text before the tag.
- trim( -- removes characters from the right edge of the text.

History

Version | Status | Notes
10.0 | Updated | Carried over from Panorama 6.0, however, this function has been fixed to remove the exact count supplied. In previous versions of Panorama, one less than the count would be removed.