How to recognise repetitive numbers on a message

Rufles Man's icon

Hello everyone,

I am doing a project that deals with a lot of numbers inside of a message. I would like to know if I can check how many times some numbers appear in that message something like this.

(check the png)
Example: How can i check automatically, how many times does "0." appears in this message.

Thanks in advance,

Bill 2's icon

Here's one way, using [zl filter] and [zl len]:

Max Patch
Copy patch and select New From Clipboard in Max.

testcase's icon

also you can use [zl sub] and use the output of the second outlet.

Bill 2's icon

@testcase: But that's only if you want to do it the easiest possible way. ;-)