-
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
Expertise and Support: The Key Benefits of Choosing a Salesforce Partner Company - InfoDrive Solutions
Salesforce is a powerful platform that can help businesses streamline their operations, increase productivity, and improve customer relationships. However, implementing and managing Salesforce can be…
Top 10 Salesforce Winter ’21 Features for Reimagining your Experience Cloud Journey
As is the norm with all feature update releases, Salesforce’s Winter ’21 release is packed with features that add fluidity to workflows and help businesses achieve…
Salesforce Einstein Voice – Stop typing and start Selling!
Imagine each of your Sales reps had a personal assistant who could handle monotonous and boring tasks while your Sales reps stay focused on their…
Popular Salesforce Videos
Salesforce Announces New Salesforce CDP Updates
Salesforce has recently announced a new series of innovations for its customer data platform (CDP). These Salesforce CDP updates have been developed to help companies…
The Power Of Displaying Salesforce Data in Google Maps
Ever wondered where on earth your Leads are? Or your customers and prospects for that matter? Well here’s the way to find out. Display your…
Salesforce Field Service Implementation
The possibilities for building a custom field service implementation are nearly endless when considering all the offerings in Salesforce Field Service. This 8-step guide provides…