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