Aller au contenu

Renvoie le nombre d’occurrences d’un motif d’expression régulière dans une chaîne.

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