input|extract( offset [, length] )
Name | Type | Description | Required |
---|---|---|---|
offset | integer | The offset to start at. | Yes. |
length | integer | The number of characters that should be extracted. | No. |
This operator will return a portion of the input string. The returned portion must be defined by the "offset" and "length" parameters. If the "length" parameter is omitted, the rest of the string (from offset) will be returned.
{'I love monday mornings!'|extract( 7 )}
The following output will be produced: "monday mornings!".
{'Big apples.'|extract( 4, 5 )}
The following output will be produced: "apple".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.