I have a string "A001BBD0" and i want to know this info:
- 0 repeats 3 times
- B repeats 2 times
and that's it.
I found this pattern on web: "([a-zA-Z]).*(\1)" but it always returns nil for some reason
I guess i should split this string and check each symbol in several loops. I don't think this is a good idea (low performance)
i also found this topic but it doesn't give me any information