sql.instr

sql.instr(
   str as String,
   n as 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
Powered by MarkLogic Server | Terms of Use | Privacy Policy