input|contains( sequence )
Name | Type | Description | Required |
---|---|---|---|
sequence | string | The string that should be matched. | Yes. |
This operator checks if the input string contains a specific sequence of characters. If a match is found, the operator will return TRUE, otherwise FALSE will be returned.
{'Welcome to my homepage!'|contains( 'my' )}
Returns TRUE.
{'Welcome to my homepage!'|contains( 'your' )}
Returns FALSE.
Powered by eZ Publish™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.