-
Splitting the string removes the delimiter
When I am Splitting any string using the split() method then it is working good but the problem is that after splitting it removes the char that is used foe splitting
like
String str = 'abc-xyz-pqrs-zykp';
list<String>test = str.split('-');
Output : {abc,xyz,pqrs,zykp}
Actual outPut that I want : {abc,-xyz,-pqrs,-zykp};
I want this to be done without iterating the above list in a for loop.
Log In to reply.
Popular Salesforce Blogs
Advanced Salesforce Reporting Features for Admins
Among the immeasurable reasons to consider Salesforce, there’s one thing that attracts users to this CRM. The provision to create customized and retailed reports has…
Unlocking Success: Choosing Between Block Pricing and Discount Schedules in Salesforce CPQ
Are you ready to unlock the true potential of Block Pricing and Discount Schedules in Salesforce CPQ? These two powerful tools hold the key to…
Publishing an App on Salesforce AppExchange
Introduction There are three major steps to be followed to get your App on Salesforce AppExchange. Plan ( what type of App you want to…
Popular Salesforce Videos
Data Access for Apex, Visualforce, and Lightning
Apex is a development platform for building software as a service (SaaS) applications on top of Salesforce.com's customer relationship management (CRM) functionality. Apex allows developers…
24 hours on the salesforce platform
Dreamforce ’18 gave us new ways to talk to Einstein, and new ways to talk about equality with Adam Rippon. We looked at customers from…
External File Storage for Salesforce | Learning Guide
We demonstrate how to avoid Salesforce's file storage limit by using external files. Read the article and download the sample file. https://dbservices.com/blog/external-file-storage-for-salesforce