substringAfter() in apex

substringAfter() is used to find substring of a string, after particular character using Apex in Salesforce.

Here is an example:

String name = 'Biswajeet-Samal';
String result = name.substringAfter('-');

Leave a Reply