Skip to content

Returns the number of times a regular expression pattern occurs in a string.

func.regexp_count(<str>, <pattern>)
func.regexp_count('banana', 'an')
┌───┐
2
└───┘
REGEXP_COUNT(<str>, <pattern>)
SELECT REGEXP_COUNT('banana', 'an');
┌───┐
2
└───┘