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