contains
Summary
Checks if a string contains a specific element.
Usage
input|contains( sequence )
Parameters
| Name | Type | Description | Required |
|---|---|---|---|
| sequence | string | The string that should be matched. | Yes. |
Returns
TRUE if there is a match, FALSE otherwise.
Description
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.
Examples
Example 1
{'Welcome to my homepage!'|contains( 'my' )}Returns TRUE.
Example 2
{'Welcome to my homepage!'|contains( 'your' )}Returns FALSE.
Contributors
- Balazs Halasy Updated
Comments
Add a comment