ads

Friday, 8 December 2017

Get substring of string after particular character using Apex in Salesforce

substringAfter() :Used to find substring of string after particular character using Apex in Salesforce


Explanation :


String txtString = 'Xys@sfdcforyou.com';
String RemStr =  txtString.substringAfter('@');
system.debug('RemStr===>'+RemStr);



Debug Output :



No comments:

Post a Comment