Apex Count the number of occurences of a character(substring) in a string? 2:51 PM string test='edwin.vijay.raymond'; system.debug('***'+test.countMatches('.')); OUTPUT: 2 Share This Story Share on Facebook Share on Twitter Pin this Post Tags: string Newer Post Older Post 0 comments
0 comments