trim
Summary
Returns a stripped version of the input string.Usage
input|trim( [char_list] )
Parameters
Name | Type | Description | Required |
---|---|---|---|
char_list | string | Characters that should be removed. | No. |
Returns
A stripped version of the input string.Description
This operator removes characters from the beginning and the end of the input string. By default, it will get rid of the following characters:
Character | ASCII value (dec) | ASCII value (hex) | Description |
---|---|---|---|
32 |
0x20 |
An ordinary space. |
|
\t |
9 |
0x09 |
A tab. |
\n |
10 |
0x0A |
A new line (line feed). |
\r |
13 |
0x0D |
A carriage return. |
\0 |
0 |
0x00 |
The NUL-byte. |
\x0B |
11 |
0x0B |
A vertical tab. |
Examples
Example 1
{' Gizmo is not a gremlin. '|trim()}
The following output will be produced: "Gizmo is not a gremlin."
Balazs Halasy (05/02/2004 11:00 am)
Balazs Halasy (04/05/2005 2:52 pm)
Comments
There are no comments.