input|begins_with( sequence )
Name | Type | Description | Required |
---|---|---|---|
sequence | string | The string that should be matched. | Yes. |
This operator checks if the input string starts with a specified sequence of characters. If yes, the operator returns TRUE, otherwise FALSE will be returned.
{'My cat is green.'|begins_with( 'My cat' )}
Returns TRUE.
{'My cat is green.'|begins_with( 'My dog' )}
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.