REGEXP_COUNT (Lakehouse v2)
返回正则表达式模式在字符串中出现的次数。
Analyze 语法
Section titled “Analyze 语法”func.regexp_count(<str>, <pattern>)Analyze 示例
Section titled “Analyze 示例”func.regexp_count('banana', 'an')
┌───┐│ 2 │└───┘SQL 语法
Section titled “SQL 语法”REGEXP_COUNT(<str>, <pattern>)SQL 示例
Section titled “SQL 示例”SELECT REGEXP_COUNT('banana', 'an');
┌───┐│ 2 │└───┘