Skip to main content

strpos

Function strpos 

Source
pub fn strpos(input: Expression, search: Expression) -> Expression
Expand description

Creates an expression that computes the one-based character position of search in input, or zero when absent, like SQL strpos.

let expr = strpos(root(), lit("needle"));