REGEXP_COUNT (Lakehouse v2)
Returns the number of times a regular expression pattern occurs in a string.
Analyze Syntax
Section titled “Analyze Syntax”func.regexp_count(<str>, <pattern>)Analyze Examples
Section titled “Analyze Examples”func.regexp_count('banana', 'an')
┌───┐│ 2 │└───┘SQL Syntax
Section titled “SQL Syntax”REGEXP_COUNT(<str>, <pattern>)SQL Examples
Section titled “SQL Examples”SELECT REGEXP_COUNT('banana', 'an');
┌───┐│ 2 │└───┘