MarkLogic Server 11.0 Product Documentation
sql:glob

sql:glob(
   $input as xs:string?,
   $pattern as xs:string
) as xs:boolean?

Summary

Returns true if the specified $input glob the specified $pattern, otherwise returns false.

Parameters
input The input from which to match.
pattern The expression to match. '?' matches one character and '*' matches any number of characters.

Example

  sql:glob("this string", "id*")

  => false

  sql:glob("this", "t*i?")

  => true
  
Powered by MarkLogic Server | Terms of Use | Privacy Policy