everyOccurrence
- function
- new in 1.81
- like occurrence(), but returns a list of every occurrence of the target in the source
- usually called using the syntax: every occurrence of target in source
- The occurrence and everyOccurrence functions have identical syntax to the offset, range, everyOffset, and everyRange functions. Instead of returning the offset(s) or range(s) of an occurrence, however, these return the actual occurrences of something. These functions can be used to find occurrences of either patterns or strings, but are particularly useful with pattern matching.
put the occurrence of <"(",chars,")"> in "sqrt(42)" —> "(42)"
put every occurrence of <3 digits> in "123456" -> (123,456)