[MarkLogic Dev General] Index function in xquery
Griffin, Matt
MGriffin at nerac.com
Thu May 17 10:53:42 PDT 2007
index-of(tokenize("a large land is big in area", ""), "a")
will produce a sequence containing all of index of every "a"
-Matt
-----Original Message-----
From: general-bounces at developer.marklogic.com
[mailto:general-bounces at developer.marklogic.com] On Behalf Of
Nizamuddin, Rashid
Sent: Thursday, May 17, 2007 1:47 PM
To: General Mark Logic Developer Discussion
Subject: [MarkLogic Dev General] Index function in xquery
Is there an indexof function in xquery which returns the index of the
the occurring match I wanted to know the second occurrence for "a" in
the following word
"a large land is big in area"
I need to find out the index or the integer value of the second
occurrence of a.
Any advice
Rashid
More information about the General
mailing list