$input_string|extract_left( length )
Name | Type | Description | Required |
---|---|---|---|
length | integer | The number of characters that should be extracted. | Yes. |
This operator extracts a portion from the start of the input string. The "length" parameter must be used to define the length (number of characters) of the portion.
{'Gooooood morning Vietnam!'|extract_left( 8 )}
The following output will be produced: "Gooooood".
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.