Hi everyone.
I've been looking for several hours how to find a sequence of characters in a text, but I want to know how many times that sequence is repeated.
Example : "qwedshducbskawegbnweuqilp"
in this string there are 3 "we".
The letters are all attached without spaces. I could use find or replace with an empty string and count how many times "we" was replaced by "". But isn't there a faster solution?
Maybe using Regex?
Or solution using a script would also be fine.