'GCP Label Regex - re2 - to Count occurrence of a word

Would appreciate if someone could assist if there's a way to "count" number of occurrences of a specific word in GCP Labels - does something like re2_count() works? if so can you share an example on how would it work?



Sources

This article follows the attribution requirements of Stack Overflow and is licensed under CC BY-SA 3.0.

Source: Stack Overflow

Solution Source