Pages
Home
About Me
For Contact
August 6, 2015
How to get Sub String of String using two Strings in Salesforce using Apex?
substringBetween() is used to get Sub String of String using two Strings in Salesforce using Apex.
Sample Code:
String s1 = 'abTestingcd';
String s2 = s1.substringBetween('ab','cd');
system.debug('s2 is ' + s2);//Testing
Output:
Cheers!!!
No comments:
Post a Comment
Newer Post
Older Post
Home
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment