How to find substring of string after particular character using Apex in Salesforce? February 3, 2015June 9, 2022InfallibleTechie Admin substringAfter() is used to find substring of string after particular character using Apex in Salesforce Sample Code: String str = ‘abc-xyz’; system.debug(‘Expected is ‘ + str.substringAfter(‘-‘)); Output: