sql.instr( str as String, n as 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.