pyflink.table.expression.Expression.regexp_instr#
- Expression.regexp_instr(regex) Expression[source]#
Returns the position of the first substring in str that matches regex. Result indexes begin at 1, 0 if there is no match. null if any of the arguments are null or regex is invalid.
- Parameters:
regex – A STRING expression with a matching pattern.
- Returns:
An INTEGER representation of the first matched substring index.
Added in version 1.12.0.