Contain text or symbol how many times written in text

How can I know that this ; Particular thing how many times written in the text.


If you use spirit the text at ;, then if you count the total length of the list -1 will give the count.

Abc;def; ghi

If you split and count you will get three. So minus 1 will give you correct result. May be some other chance will be there but I didn’t get it

There is a problem i don’t want to use split because when I got the no. Of ; . Then I want use split in my app. Is there any other way to get that

Using regex extension by @Kevinkun


This topic was automatically closed 30 days after the last reply. New replies are no longer allowed.