MarkLogic 10 Product Documentation
sql:instrsql:instr(
$str as xs:string,
$n as xs:string
) as xs:unsigned
Summary
Find the starting location of a pattern in a string.
Parameters |
str |
The string to be evaluated.
|
n |
The pattern to be evaluated.
|
Example
sql:instr("abcd rf","bc")
=> 2
Stack Overflow: Get the most useful answers to questions from the MarkLogic community, or ask your own question.