contains
Returns Boolean true if the string value supplied as argument contains the sub-string supplied as argument.

Languages
Built-in, C++, C#, Java, XQuery, XSLT 1.0, XSLT 2.0, XSLT 3.0.
Parameters
Name | Description |
---|---|
value | The input value (that is, the "haystack"). |
substring | The sub-string to look for (that is, the "needle"). |
Example
If the input value is "category" and substring is "cat", the function returns true.