489
Views
3
Comments
Count occurrences of specific character in the string
Question

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

2016-04-21 20-09-55
J.
 
MVP

no built in afaik, but for example


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



2021-02-15 13-40-57
Shashank Diwan

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 

2022-08-17 08-19-34
Erga Kandly

I need this fuction too!
hopefully OutSystems can provide this build in function.
It takes time to loop all the character and impacting to response time

Community GuidelinesBe kind and respectful, give credit to the original source of content, and search for duplicates before posting.