How can I count the occurrences of a specific character into a string, with LUA, please?
I give here an example
let the string: "my|fisrt|string|hello"
I want to count how many occurrences of the character "|" has the string. In this case, it should return 3
How can I do it please?