To display a subsection of text, place the text inside a [GetChars] context.
Example (normally you would put the following text into a .tpl file on your server and use a web browser to link to it):
The example above returns "Edwin," which is the sequence of letters starting at the 14th position and extending to the 18th position. Extracting sub-portions of text is useful when you need to get text from within files.
The example above returns "na," which is the sequence of letters starting at the 1st position from the end and extending to the 2nd position from the end.
The following parameters are optional to the [GetChars] context:
| Parameter | Description |
|---|---|
|
start
|
Index placement of the first character to return. |
|
end
|
(Optional) The index placement of the last character to return. If no end is specified, all of the text up to the end of the string is returned. |
|
from
|
(Optional) Set to "end" to get characters from the ending of the string instead of the beginning. |