Count occurrences of specific character in the string

Count occurrences of specific character in the string

  

Hi,

Can someone please tell me how to get the count of specific character in the text variable, is there is any built in function available ?


Thanks,

Durgesh

no built in afaik, but for example


length(var1) and length(replace(var1,"B"))



There is no built in function, you may loop through your string and use functions like Index and Substr to get the desired result.

Shashank