XPath contains
Last modified: June 28, 2023
1 Overview
The contains()
function tests whether a string attribute contains a specific string (case-insensitive) as a sub-string.
2 Example
This query returns all the customers from which the name contains the string an
:
[contains(Name, 'an')]
//Sales.Customer[contains(Name, 'an')]
Customers with the name “Andy” or “Jan” will be returned, for example, because “an” is part of those names.
Feedback
Was this page helpful?
Glad to hear it! Thank you for your response.
Sorry to hear that. Please tell us how we can improve.