Visit Mozilla.org

XPath:Functions:contains

From MDC

XSLT/XPath Reference: XSLT elements, EXSLT functions, XPath functions, XPath axes

Contents


The contains function determines whether the first argument string contains the second argument string and returns boolean true or false.

[edit] Syntax

contains( haystack , needle )

[edit] Arguments

haystack
The string to be searched
needle
The string to look for as a substring of haystack

[edit] Returns

true if haystack contains needle. Otherwise, false.

[edit] Defined

XPath 1.0 4.2

[edit] Gecko support

Supported.