Pages
(Move to ...)
Home
Forcetree
FAQ's
▼
Tuesday, November 10, 2015
Apex Count the number of occurences of a character(substring) in a string?
string test='edwin.vijay.raymond'; system.debug('***'+test.countMatches('.')); OUTPUT: 2
No comments:
Post a Comment
‹
›
Home
View web version
No comments:
Post a Comment