Caution: This documentation is for eZ Publish legacy, from version 3.x to 6.x.
For 5.x documentation covering Platform see eZ Documentation Center, for difference between legacy and Platform see 5.x Architecture overview.

extract_right

Summary

Returns a portion of the end of the input string.

Usage

input|extract_right( length )
 

Parameters

NameTypeDescriptionRequired
length integer The number of characters that should be extracted. Yes.

Returns

A string containing a chunk of the input string.

Description

This operator extracts a portion from the end of the input string. The "length" parameter must be used to define the length (number of characters) of the portion.

Examples

Example 1

{"Gooooood morning Vietnam!"|extract_right( 8 )}

The following output will be produced: "Vietnam!".

Balazs Halasy (05/02/2004 10:56 am)

Balazs Halasy (04/05/2005 2:41 pm)


Comments

There are no comments.