Jamie Balfour

Welcome to my personal website.

Find out more about me, my personal projects, reviews, courses and much more here.

Official ZPE/YASS documentationstring_count_occurrences

string_count_occurrences (string text, list search[, boolean insensitively[, boolean ignore_duplicates]]) ⇒ boolean

Counts the number of occurrences in the string text of each occurrence in list. List may also be defined as a single string. If ignore_duplicates is true, duplication is ignored. For example, in [is, i] the i would not be recounted in the is.

Alternative function names: str_count_occurrences
First available: Version 1.13.7

Notes

This function is faster than running multiple different functions to perform the same task and whilst this function is designed to be relatively fast itself, it has not been tested with larger datasets and performance may suffer.

Comments
Feedback 👍
Comments are sent via email to me.