MarkLogic 9 Product Documentation
sql:instr

sql: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
Powered by MarkLogic Server | Terms of Use | Privacy Policy